add onetime plan

This commit is contained in:
Tokumeikoi
2020-02-28 01:03:05 +08:00
parent a7b3d6e778
commit 0f9cb9696d
3 changed files with 62 additions and 5 deletions

View File

@ -38,7 +38,10 @@ class ResetTraffic extends Command
*/
public function handle()
{
DB::table('v2_user')->update([
// get plans of cycle type
$plans = Plan::where('type', 0)->get();
$users = User::whereIn('plan_id', $plans)->get();
$users->update([
'u' => 0,
'd' => 0
]);