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