|
...
|
...
|
@@ -40,10 +40,10 @@ class UserLoginLogic |
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前用户不存在或者被禁用',Code::USER_REGISTER_ERROE);
|
|
|
|
}
|
|
|
|
|
|
|
|
//查看当前账号下有几个项目
|
|
|
|
$password = base64_encode(md5($this->param['password']));
|
|
|
|
$list = $this->model->list(['mobile'=>$this->param['mobile'],
|
|
|
|
'password'=>$this->param['password'],'status'=>$this->model::STATUS_ZERO],'id',['id','project_id']);
|
|
|
|
'password'=>$password,'status'=>$this->model::STATUS_ZERO],'id',['id','project_id']);
|
|
|
|
if(empty($list)){
|
|
|
|
//验证code
|
|
|
|
$list = $this->verifyCode($this->param['mobile'],$this->param['password']);
|
...
|
...
|
|