|
...
|
...
|
@@ -37,7 +37,7 @@ class UserLoginLogic |
|
|
|
*/
|
|
|
|
public function login(){
|
|
|
|
//先验证手机号是否在项目中存在
|
|
|
|
$info = $this->model->read(['mobile'=>$this->param['mobile'],'status'=>$this->model::STATUS_ZERO],['id']);
|
|
|
|
$info = $this->model->read(['mobile'=>$this->param['mobile'],'status'=>$this->model::STATUS_ZERO],['id','is_password']);
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前用户不存在或者被禁用',Code::USER_REGISTER_ERROE);
|
|
|
|
}
|
...
|
...
|
|