This commit is contained in:
root 2019-12-15 15:24:56 +08:00
parent dcbc095d1a
commit 28d49b6260

View File

@ -3,7 +3,7 @@
namespace App\Console\Commands; namespace App\Console\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use App\Models\User; use Illuminate\Support\Facades\DB;
class ResetTraffic extends Command class ResetTraffic extends Command
{ {
@ -38,9 +38,6 @@ class ResetTraffic extends Command
*/ */
public function handle() public function handle()
{ {
User::all()->update([ DB::update('update v2_user set u = 0, d = 0');
'u' => 0,
'd' => 0
]);
} }
} }