|
...
|
...
|
@@ -35,9 +35,6 @@ class ComController extends BaseController |
|
|
|
]);
|
|
|
|
$userLogic = new UserLogic();
|
|
|
|
$res = $userLogic->login($this->param);
|
|
|
|
if($res === false){
|
|
|
|
$this->response('当前用户不存在或者被禁用,登录失败',Code::USER_ERROR,[]);
|
|
|
|
}
|
|
|
|
$this->response('请求成功',Code::SUCCESS,$res);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -93,10 +90,7 @@ class ComController extends BaseController |
|
|
|
]);
|
|
|
|
$userLogic = new UserLogic();
|
|
|
|
$this->param['id'] = $this->uid;
|
|
|
|
$rs = $userLogic->edits($this->param);
|
|
|
|
if($rs === false){
|
|
|
|
$this->response('参数错误或其他服务器原因,编辑失败',Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
$userLogic->edits($this->param);
|
|
|
|
$this->response('编辑成功');
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|