Merge pull request '更新查询' (#23) from mkm into master
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/23
This commit is contained in:
commit
0bc7e77823
@ -56,7 +56,13 @@ class UserController extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function info()
|
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);
|
return $this->data($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user