fix : site
This commit is contained in:
@@ -37,7 +37,7 @@ class MyPageService extends BaseService
|
||||
|
||||
$adminInfo = $this->adminUserModel->getAdminInfoByBindUserId($this->userId);
|
||||
|
||||
return [
|
||||
$res = [
|
||||
'id' => $this->userId,
|
||||
'nickname' => $userInfo->nickname,
|
||||
'avatar' => $this->getOssObjectById($userInfo->avatar_id) ?? '',
|
||||
@@ -47,6 +47,8 @@ class MyPageService extends BaseService
|
||||
'invite_num' => 0,
|
||||
'role_id' => (!empty($adminInfo) && $adminInfo->role_id > 0) ? $adminInfo->role_id : 0,
|
||||
];
|
||||
|
||||
return $this->return->success('success', $res);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user