Merge pull request '更新查询' (#23) from mkm into master

Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/23
This commit is contained in:
mkm 2023-08-03 15:20:47 +08:00
commit 0bc7e77823

View File

@ -56,7 +56,13 @@ class UserController extends BaseApiController
*/
public function info()
{
$result = UserLogic::info($this->userId);
$params = $this->request->param();
if(isset($params['id']) && $params['id']>0){
$id=$params['id'];
}else{
$id=$this->userId;
}
$result = UserLogic::info($id);
return $this->data($result);
}