fix : site

This commit is contained in:
2025-03-31 15:20:51 +08:00
parent 003613a918
commit d84ffd4c9e
5 changed files with 81 additions and 6 deletions

View File

@@ -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);
}
/**