|
@@ -145,9 +145,9 @@ class BeanRepository
|
|
}
|
|
}
|
|
$content_author_id = array_column($excellent_residents,'content_author_id');
|
|
$content_author_id = array_column($excellent_residents,'content_author_id');
|
|
$uids = array_unique($content_author_id);
|
|
$uids = array_unique($content_author_id);
|
|
- $author_data = $this->getFollowMembersStatus($uids);
|
|
|
|
|
|
+ $author_data = $this->getFollowMembersStatus(implode(',', $uids));
|
|
|
|
|
|
- if (count($author_data)>0){
|
|
|
|
|
|
+ if (isset($author_data)){
|
|
foreach ($author_data as $key=>$val){
|
|
foreach ($author_data as $key=>$val){
|
|
foreach ($excellent_residents as $k=>$v){
|
|
foreach ($excellent_residents as $k=>$v){
|
|
if (isset($key) && $key == $v['content_author_id']){
|
|
if (isset($key) && $key == $v['content_author_id']){
|
|
@@ -157,8 +157,7 @@ class BeanRepository
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }var_dump($uids);
|
|
|
|
- var_dump($author_data);die;
|
|
|
|
|
|
+ }
|
|
|
|
|
|
return $excellent_residents;
|
|
return $excellent_residents;
|
|
}
|
|
}
|