...
|
...
|
@@ -33,7 +33,7 @@ class UserModel |
|
|
$userData = UserData::userData($uid);
|
|
|
|
|
|
// 处理个人详情数
|
|
|
if (!isset($userData['code'])) {
|
|
|
if ($userData && !isset($userData['code'])) {
|
|
|
$result = $userData;
|
|
|
$result['gender'] = $result['gender'] == 1 ? '男' : '女';
|
|
|
$result['head_ico'] = $result['head_ico'] ? Images::getImageUrl($result['head_ico'], 128, 128) : '';
|
...
|
...
|
@@ -103,7 +103,7 @@ class UserModel |
|
|
}
|
|
|
// 有货币数量
|
|
|
$coinNum = UserData::yohoCoinData($uid);
|
|
|
if(!isset($coinNum['code'])) {
|
|
|
if($coinNum && !isset($coinNum['code'])) {
|
|
|
$result['yoho_coin_num'] = $coinNum;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -354,7 +354,7 @@ class UserModel |
|
|
$address = UserData::addressData($uid);
|
|
|
|
|
|
// 处理地址数据
|
|
|
if (!isset($address['code'])) {
|
|
|
if ($address && !isset($address['code'])) {
|
|
|
$result = $address;
|
|
|
}
|
|
|
|
...
|
...
|
|