正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
| @@ -98,7 +98,7 @@ class UserLoginLogic | @@ -98,7 +98,7 @@ class UserLoginLogic | ||
| 98 | * @time :2023/6/12 15:31 | 98 | * @time :2023/6/12 15:31 |
| 99 | */ | 99 | */ |
| 100 | public function verifyAccount(){ | 100 | public function verifyAccount(){ |
| 101 | - $info = $this->model->read(['mobile'=>$this->param['mobile']],['id','mobile','status','role_id','token','name','project_id']); | 101 | + $info = $this->model->read(['mobile'=>$this->param['mobile']],['id','mobile','status','password','role_id','token','name','project_id']); |
| 102 | if($info === false){ | 102 | if($info === false){ |
| 103 | $this->fail('当前用户不存在',Code::USER_REGISTER_ERROE); | 103 | $this->fail('当前用户不存在',Code::USER_REGISTER_ERROE); |
| 104 | } | 104 | } |
| @@ -108,8 +108,6 @@ class UserLoginLogic | @@ -108,8 +108,6 @@ class UserLoginLogic | ||
| 108 | //密码加密 | 108 | //密码加密 |
| 109 | $password = base64_encode(md5($this->param['password'])); | 109 | $password = base64_encode(md5($this->param['password'])); |
| 110 | if($password != $info['password']){ | 110 | if($password != $info['password']){ |
| 111 | - var_dump(1111); | ||
| 112 | - die(); | ||
| 113 | $this->verifyCode($this->param['mobile'],$this->param['password']); | 111 | $this->verifyCode($this->param['mobile'],$this->param['password']); |
| 114 | } | 112 | } |
| 115 | return $this->success($info); | 113 | return $this->success($info); |
-
请 注册 或 登录 后发表评论