|
@@ -14,6 +14,7 @@ class member_relationControl extends mbMemberControl
|
|
|
//subscriber TEXT COMMENT '订阅我为好友的人。',
|
|
|
//follower TEXT COMMENT '我订阅别人成为好友通过的人。'
|
|
|
|
|
|
+ //我关注的人
|
|
|
public function subscriberOp()
|
|
|
{
|
|
|
$iRelation = new \relation\mem_relation($_SESSION['member_id']);
|
|
@@ -36,7 +37,7 @@ class member_relationControl extends mbMemberControl
|
|
|
$f_infos = Model('member_relation')->getRelationList(array('member_id' => array('in',$follower)));
|
|
|
foreach ($f_infos as $val) {
|
|
|
$relation = new \relation\mem_relation($val);
|
|
|
- $item = array('fcount' =>$relation->subscriber_count(),
|
|
|
+ $item = array('fans_count' =>$relation->subscriber_count(),
|
|
|
'member_id' => $relation->member_id(),
|
|
|
'subscribed' => true);
|
|
|
array_push($follower_infos,$item);
|
|
@@ -69,7 +70,7 @@ class member_relationControl extends mbMemberControl
|
|
|
$f_infos = Model('member_relation')->getRelationList(array('member_id' => array('in',$follower)));
|
|
|
foreach ($f_infos as $val) {
|
|
|
$relation = new \relation\mem_relation($val);
|
|
|
- $item = array('fcount' => $relation->subscriber_count(),
|
|
|
+ $item = array('fans_count' => $relation->subscriber_count(),
|
|
|
'member_id' => $relation->member_id(),
|
|
|
'subscribed' => $iRelation->is_follower($relation->member_id()));
|
|
|
array_push($follower_infos,$item);
|