正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -40,10 +40,10 @@ class UserLoginLogic | @@ -40,10 +40,10 @@ class UserLoginLogic | ||
| 40 | if($info === false){ | 40 | if($info === false){ |
| 41 | $this->fail('当前用户不存在或者被禁用',Code::USER_REGISTER_ERROE); | 41 | $this->fail('当前用户不存在或者被禁用',Code::USER_REGISTER_ERROE); |
| 42 | } | 42 | } |
| 43 | - | ||
| 44 | //查看当前账号下有几个项目 | 43 | //查看当前账号下有几个项目 |
| 44 | + $password = base64_encode(md5($this->param['password'])); | ||
| 45 | $list = $this->model->list(['mobile'=>$this->param['mobile'], | 45 | $list = $this->model->list(['mobile'=>$this->param['mobile'], |
| 46 | - 'password'=>$this->param['password'],'status'=>$this->model::STATUS_ZERO],'id',['id','project_id']); | 46 | + 'password'=>$password,'status'=>$this->model::STATUS_ZERO],'id',['id','project_id']); |
| 47 | if(empty($list)){ | 47 | if(empty($list)){ |
| 48 | //验证code | 48 | //验证code |
| 49 | $list = $this->verifyCode($this->param['mobile'],$this->param['password']); | 49 | $list = $this->verifyCode($this->param['mobile'],$this->param['password']); |
-
请 注册 或 登录 后发表评论