挚友列表
This commit is contained in:
@@ -973,10 +973,20 @@ class User extends Model
|
|||||||
$no_cp = [];
|
$no_cp = [];
|
||||||
if($relation){
|
if($relation){
|
||||||
foreach ($relation as $k => $v){
|
foreach ($relation as $k => $v){
|
||||||
$no_cp[$k]['relation_name'] = $v['name'];
|
$relation_list = $this->relation_card($v['id'],$user_id);
|
||||||
$no_cp[$k]['relation_list'] = $this->relation_card($v['id'],$user_id);
|
if($relation_list){
|
||||||
|
$no_cp[$k]['relation_list'] = $relation_list;
|
||||||
|
$no_cp[$k]['relation_name'] = $v['name'];
|
||||||
|
}else{
|
||||||
|
unset($relation[$k]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if($no_cp){
|
||||||
|
//数组重新排序
|
||||||
|
$no_cp = array_values($no_cp);
|
||||||
|
}
|
||||||
$return_data['no_cp'] = $no_cp;
|
$return_data['no_cp'] = $no_cp;
|
||||||
|
|
||||||
//CP 信息
|
//CP 信息
|
||||||
|
|||||||
Reference in New Issue
Block a user