用户详情头像优化

This commit is contained in:
吴昊天 2022-12-19 21:24:24 +08:00
parent 5a9050704b
commit f4b034950f

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