正在显示
1 个修改的文件
包含
1 行增加
和
7 行删除
| @@ -35,9 +35,6 @@ class ComController extends BaseController | @@ -35,9 +35,6 @@ class ComController extends BaseController | ||
| 35 | ]); | 35 | ]); |
| 36 | $userLogic = new UserLogic(); | 36 | $userLogic = new UserLogic(); |
| 37 | $res = $userLogic->login($this->param); | 37 | $res = $userLogic->login($this->param); |
| 38 | - if($res === false){ | ||
| 39 | - $this->response('当前用户不存在或者被禁用,登录失败',Code::USER_ERROR,[]); | ||
| 40 | - } | ||
| 41 | $this->response('请求成功',Code::SUCCESS,$res); | 38 | $this->response('请求成功',Code::SUCCESS,$res); |
| 42 | } | 39 | } |
| 43 | 40 | ||
| @@ -93,10 +90,7 @@ class ComController extends BaseController | @@ -93,10 +90,7 @@ class ComController extends BaseController | ||
| 93 | ]); | 90 | ]); |
| 94 | $userLogic = new UserLogic(); | 91 | $userLogic = new UserLogic(); |
| 95 | $this->param['id'] = $this->uid; | 92 | $this->param['id'] = $this->uid; |
| 96 | - $rs = $userLogic->edits($this->param); | ||
| 97 | - if($rs === false){ | ||
| 98 | - $this->response('参数错误或其他服务器原因,编辑失败',Code::USER_ERROR); | ||
| 99 | - } | 93 | + $userLogic->edits($this->param); |
| 100 | $this->response('编辑成功'); | 94 | $this->response('编辑成功'); |
| 101 | } | 95 | } |
| 102 | 96 |
-
请 注册 或 登录 后发表评论