gq 7 years ago
parent
commit
406eaec33e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/app/Http/Controllers/Api/V1/AuthController.php

+ 2 - 2
server/app/Http/Controllers/Api/V1/AuthController.php

xqd
@@ -112,9 +112,9 @@ class AuthController extends Controller
             $user = UserInfoModel::where('phone',$phone)->first();
         }else{
             $phone_user = UserInfoModel::where('phone',$phone)->first();
-            if(!empty($phone_user)){
+          /*  if(!empty($phone_user)){
                 return $this->error(ErrorCode::USER_DOES_EXIST);
-            }
+            }*/
         }
         if (empty($user)) {
             $user = UserInfoModel::create([