|
|
@@ -344,10 +344,11 @@ class Info {
|
|
|
$netParentBaseInfo = self::baseInfo($baseInfo['CON_UID']);
|
|
|
$networkParent = UserNetwork::findOneAsArray('USER_ID=:USER_ID', [':USER_ID' => $userId]);
|
|
|
//$baseInfo['CON_UID'] = $baseInfo['CON_UID'];
|
|
|
- $baseInfo['CON_USER_NAME'] = $netParentBaseInfo['USER_NAME'];
|
|
|
- $baseInfo['CON_REAL_NAME'] = $netParentBaseInfo['REAL_NAME'];
|
|
|
- $baseInfo['LOCATION'] = $networkParent['RELATIVE_LOCATION'];
|
|
|
+ $baseInfo['CON_USER_NAME'] = $netParentBaseInfo['USER_NAME'] ?? '';
|
|
|
+ $baseInfo['CON_REAL_NAME'] = $netParentBaseInfo['REAL_NAME'] ?? '';
|
|
|
+ $baseInfo['LOCATION'] = $networkParent['RELATIVE_LOCATION'] ?? 1;
|
|
|
}
|
|
|
+
|
|
|
if (isset($baseInfo['REC_UID']) && $baseInfo['REC_UID']) {
|
|
|
// 推荐网上级
|
|
|
//$relationParentUserInfo = UserRelation::getFirstParentUserInfo($userId);
|