12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Console\Commands;
- use Illuminate\Console\Command;
- use Illuminate\Support\Facades\DB;
- class ResetTraffic extends Command
- {
-
- protected $signature = 'reset:traffic';
-
- protected $description = '流量清空';
-
- public function __construct()
- {
- parent::__construct();
- }
-
- public function handle()
- {
- DB::table('v2_user')->update([
- 'u' => 0,
- 'd' => 0
- ]);
- }
- }
|