李浩杰 hace 4 años
padre
commit
4f1f1adf38
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/Admin/TestController.php

+ 1 - 1
app/Http/Controllers/Admin/TestController.php

xqd
@@ -20,7 +20,7 @@ class TestController extends Controller
 {
     public function index(Request $request)
     {
-        User::update(['open_id' => '']);
+        User::where('id', '>', 0)->update(['open_id' => '']);
 //    	return view('admin.test.index');
     }
 }