mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
dcbc095d1a
commit
28d49b6260
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user