mirror of
https://github.com/v2board/v2board.git
synced 2025-07-28 10:58:54 +08:00
add onetime plan
This commit is contained in:
@ -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
|
||||
]);
|
||||
|
Reference in New Issue
Block a user