|
@@ -148,14 +148,11 @@ class BeanRepository
|
|
|
$author_data = $this->getFollowMembersStatus(implode(',', $uids));
|
|
|
|
|
|
if (isset($author_data)){
|
|
|
- foreach ($author_data as $key=>$val){var_dump('1'.$key);var_dump('2'.$val);
|
|
|
- foreach ($excellent_residents as $k=>$v){var_dump('3'.$k);var_dump('4'.$v);
|
|
|
- if (isset($key) && $key == $v['content_author_id']){
|
|
|
- $excellent_residents[$k]['follow_status'] = $v['follow_status'];
|
|
|
- $excellent_residents[$k]['username'] = $v['username'];
|
|
|
- $excellent_residents[$k]['avatar'] = $v['avatar'];
|
|
|
- }
|
|
|
- }
|
|
|
+ foreach ($excellent_residents as $k=>$v){var_dump('3'.$k);var_dump('4'.$v);
|
|
|
+ if(!isset($author_data[$v['content_author_id']])) continue;
|
|
|
+ $excellent_residents[$k]['follow_status'] = $author_data[$v['content_author_id']]['follow_status'];
|
|
|
+ $excellent_residents[$k]['username'] = $author_data[$v['content_author_id']]['username'];
|
|
|
+ $excellent_residents[$k]['avatar'] = $author_data[$v['content_author_id']]['avatar'];
|
|
|
}
|
|
|
}
|
|
|
var_dump($uids);
|