Sfoglia il codice sorgente

客户端-用户注册-删除的用户再次注册时提示错误

sunxiaobiao 9 mesi fa
parent
commit
ddf576a4d6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/controller/api/Auth.php

+ 1 - 1
app/controller/api/Auth.php

@@ -1425,7 +1425,7 @@ class Auth extends BaseController
1425 1425
         }
1426 1426
 
1427 1427
         if ($data['type']=="register"){
1428
-            $count=Db::name("user")->where("phone", $data["phone"])->count();
1428
+            $count=Db::name("user")->where("phone", $data["phone"])->where('is_del','=',0)->count();
1429 1429
             if ($count){
1430 1430
                 return app('json')->make(405, '该手机号已注册,请直接登录');
1431 1431
             }