用户详情头像优化

This commit is contained in:
吴昊天 2022-12-19 21:23:29 +08:00
parent 7acafb0d55
commit ec44a81dbf

View File

@ -1201,14 +1201,14 @@ class UserServices extends BaseServices
if (!$userInfo) {
throw new AdminException(100026);
}
$info = [
$userInfo['avatar'] = strpos($userInfo['avatar'], 'http') === false ? (sys_config('site_url') . $userInfo['avatar']) : $userInfo['avatar'];
return [
'uid' => $uid,
'userinfo' => $this->getUserDetailed($uid, $userInfo),
'headerList' => $this->getHeaderList($uid, $userInfo),
'count' => $this->getUserBillCountData($uid),
'ps_info' => $userInfo
];
return $info;
}
/**