更新查询
This commit is contained in:
parent
ea5abd8460
commit
c8d6ae734c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user