mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
用户详情报错修复
This commit is contained in:
parent
88ad2d324d
commit
df9a6802ba
@ -1246,7 +1246,11 @@ class UserServices extends BaseServices
|
||||
$userInfo['birthday'] = $userInfo['birthday'] < 0 ? 0 : $userInfo['birthday'];
|
||||
if ($userInfo['addres'] == '') {
|
||||
$defaultAddressInfo = app()->make(UserAddressServices::class)->getUserDefaultAddress($uid);
|
||||
$userInfo['addres'] = $defaultAddressInfo['province'] . $defaultAddressInfo['city'] . $defaultAddressInfo['district'] . $defaultAddressInfo['detail'];
|
||||
if ($defaultAddressInfo) {
|
||||
$userInfo['addres'] = $defaultAddressInfo['province'] . $defaultAddressInfo['city'] . $defaultAddressInfo['district'] . $defaultAddressInfo['detail'];
|
||||
} else {
|
||||
$userInfo['addres'] = '';
|
||||
}
|
||||
}
|
||||
$userInfo['vip_name'] = app()->make(SystemUserLevelServices::class)->value(['grade' => $userInfo['level']], 'name');
|
||||
$userInfo['group_name'] = app()->make(UserGroupServices::class)->value(['id' => $userInfo['group_id']], 'group_name');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user