作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

接口

@@ -137,7 +137,7 @@ class PublicController extends RestBaseController @@ -137,7 +137,7 @@ class PublicController extends RestBaseController
137 if (empty($re['mobile'])){ 137 if (empty($re['mobile'])){
138 $this->success(['msg'=>'请先手机号注册!','code'=>'40001'], ['token' => $token]); 138 $this->success(['msg'=>'请先手机号注册!','code'=>'40001'], ['token' => $token]);
139 } 139 }
140 - if ($re['user_status']!=1||$re['user_status']!=2){ 140 + if ($re['user_status']!=1&&$re['user_status']!=2){
141 $this->success(['msg'=>'请先填写用户信息!','code'=>'40002'], ['token' => $token]); 141 $this->success(['msg'=>'请先填写用户信息!','code'=>'40002'], ['token' => $token]);
142 } 142 }
143 $this->success("登录成功!", ['token' => $token]); 143 $this->success("登录成功!", ['token' => $token]);
@@ -176,7 +176,7 @@ class PublicController extends RestBaseController @@ -176,7 +176,7 @@ class PublicController extends RestBaseController
176 if (empty($re['mobile'])){ 176 if (empty($re['mobile'])){
177 $this->success(['msg'=>'请先手机号注册!','code'=>'40001'], ['token' => $token]); 177 $this->success(['msg'=>'请先手机号注册!','code'=>'40001'], ['token' => $token]);
178 } 178 }
179 - if ($re['user_status']!=1){ 179 + if ($re['user_status']!=1&&$re['user_status']!=2){
180 $this->success(['msg'=>'请先填写用户信息!','code'=>'40002'], ['token' => $token]); 180 $this->success(['msg'=>'请先填写用户信息!','code'=>'40002'], ['token' => $token]);
181 } 181 }
182 $this->success("登陆成功!", ['token' => $token]); 182 $this->success("登陆成功!", ['token' => $token]);