正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -138,7 +138,7 @@ class ComController extends BaseController | @@ -138,7 +138,7 @@ class ComController extends BaseController | ||
| 138 | $userModel = new User(); | 138 | $userModel = new User(); |
| 139 | $info = $userModel->read(['id'=>$this->user['id']]); | 139 | $info = $userModel->read(['id'=>$this->user['id']]); |
| 140 | if($info['password'] != base64_encode(md5($this->param['oldPassword']))){ | 140 | if($info['password'] != base64_encode(md5($this->param['oldPassword']))){ |
| 141 | - $this->response('原密码错误',Code::USER_REGISTER_ERROE); | 141 | + $this->response('原密码错误',Code::USER_ERROR); |
| 142 | } | 142 | } |
| 143 | if($this->param['password'] != $this->param['confirm']){ | 143 | if($this->param['password'] != $this->param['confirm']){ |
| 144 | $this->response('两次密码不一致'); | 144 | $this->response('两次密码不一致'); |
-
请 注册 或 登录 后发表评论