|
...
|
...
|
@@ -64,10 +64,12 @@ class UserLoginLogic |
|
|
|
*/
|
|
|
|
public function verifyAccount(){
|
|
|
|
$password = base64_encode(md5($this->param['password']));
|
|
|
|
$info = $this->model->read(['mobile'=>$this->param['mobile'],'password'=>$password,'status'=>$this::USER_STATUS], ['id','mobile','role_id','token','name','project_id']);
|
|
|
|
$info = $this->model->read(['mobile'=>$this->param['mobile'],'password'=>$password,'status'=>$this::USER_STATUS],
|
|
|
|
['id','mobile','role_id','token','name','project_id']);
|
|
|
|
if($info === false){
|
|
|
|
//账号密码没通过时,验证验证码
|
|
|
|
$info = $this->model->read(['mobile'=>$this->param['mobile'],'status'=>$this::USER_STATUS], ['id','mobile','role_id','token','name','project_id']);
|
|
|
|
$info = $this->model->read(['mobile'=>$this->param['mobile'],'status'=>$this::USER_STATUS],
|
|
|
|
['id','mobile','role_id','token','name','project_id']);
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('账号密码错误',Code::USER_REGISTER_ERROE);
|
|
|
|
}
|
...
|
...
|
|