正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -143,10 +143,10 @@ class UserLoginLogic | @@ -143,10 +143,10 @@ class UserLoginLogic | ||
| 143 | $smsInfo = $smsModel->formatQuery(['mobile'=>$mobile,'type'=>$smsModel::TYPE_LOGIN])->orderBy('id','desc')->first(); | 143 | $smsInfo = $smsModel->formatQuery(['mobile'=>$mobile,'type'=>$smsModel::TYPE_LOGIN])->orderBy('id','desc')->first(); |
| 144 | if(!empty($smsInfo)){ | 144 | if(!empty($smsInfo)){ |
| 145 | if(($password != $smsInfo['code']) || ($smsInfo['created_at'] < date('Y-m-d H:i:s',time() - 300))){ | 145 | if(($password != $smsInfo['code']) || ($smsInfo['created_at'] < date('Y-m-d H:i:s',time() - 300))){ |
| 146 | - $this->fail('账号密码错误/验证码错误',Code::USER_REGISTER_ERROE); | 146 | + $this->fail('账号密码错误/验证码错误'); |
| 147 | } | 147 | } |
| 148 | }else{ | 148 | }else{ |
| 149 | - $this->fail('账号密码错误/验证码错误',Code::USER_REGISTER_ERROE); | 149 | + $this->fail('账号密码错误/验证码错误'); |
| 150 | } | 150 | } |
| 151 | $list = $this->model->list(['mobile'=>$this->param['mobile'],'status'=>$this->model::STATUS_ZERO],['id','project_id']); | 151 | $list = $this->model->list(['mobile'=>$this->param['mobile'],'status'=>$this->model::STATUS_ZERO],['id','project_id']); |
| 152 | return $this->success($list); | 152 | return $this->success($list); |
-
请 注册 或 登录 后发表评论