root 5 年之前
父節點
當前提交
dcbc095d1a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/ResetTraffic.php

+ 1 - 1
app/Console/Commands/ResetTraffic.php

@@ -38,7 +38,7 @@ class ResetTraffic extends Command
      */
     public function handle()
     {
-        User::update([
+        User::all()->update([
             'u' => 0,
             'd' => 0
         ]);