mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
【程序目录】更新判断用户是否是默认头像
This commit is contained in:
parent
ed54e63801
commit
2faad235ff
@ -1195,6 +1195,11 @@ class UserServices extends BaseServices
|
||||
return [$integral_count, $sign_count, $balanceChang_count];
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户详情
|
||||
* @param int $uid
|
||||
* @return array
|
||||
*/
|
||||
public function read(int $uid)
|
||||
{
|
||||
$userInfo = $this->getUserInfo($uid);
|
||||
@ -1514,6 +1519,7 @@ class UserServices extends BaseServices
|
||||
$user['integral'] = intval($user['integral']);
|
||||
$user['is_agent_level'] = $agentLevelServices->count(['status' => 1, 'is_del' => 0]) > 0 ? 1 : 0;
|
||||
$user['division_open'] = (int)sys_config('division_status', 0);
|
||||
$user['is_default_avatar'] = $user['avatar'] == sys_config('h5_avatar') ? 1 : 0;
|
||||
$user['avatar'] = strpos($user['avatar'], '/statics/system_images/') !== false ? set_file_url($user['avatar']) : $user['avatar'];
|
||||
return $user;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user