xiaogang 4 years ago
parent
commit
db4f41f9e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/AuthorizationsController.php

+ 1 - 1
app/Http/Controllers/Api/AuthorizationsController.php

xqd
@@ -144,7 +144,7 @@ class AuthorizationsController extends Controller
         }
 
         if(!UserVipLimit::query()->where('user_id',$user->id)->first()){
-            UserVipLimit::query()->firstOrCreate([
+            UserVipLimit::query()->create([
                 'user_id'=>$user->id,
             ]);
         }