|
@@ -192,10 +192,10 @@ class UserController extends AbstractController
|
|
|
* 获取用户信息
|
|
|
* @return array|void
|
|
|
*/
|
|
|
- public function getUserInfo()
|
|
|
+ public function getUserInfo($id)
|
|
|
{
|
|
|
|
|
|
- $result = $this->userServiceClient->getUserInfo((int)Context::get("UserId"));
|
|
|
+ $result = $this->userServiceClient->getUserInfo($id!=''?$id:(int)Context::get("UserId"));
|
|
|
if ($result['code'] != ErrorCode::SUCCESS) {
|
|
|
return Result::error($result['message'],0,[]);
|
|
|
}
|