|
@@ -139,7 +139,7 @@ class DynamicService extends BaseService
|
|
|
// 关注数量
|
|
// 关注数量
|
|
|
$item['collect'] = 0;
|
|
$item['collect'] = 0;
|
|
|
if($item['id']){
|
|
if($item['id']){
|
|
|
- $count = CollectModel::where(['source_id'=> $item['id'],'mark'=> 1,'status'=> 1])->count('id');
|
|
|
|
|
|
|
+ $count = CollectModel::where(['source_id'=> $item['id'],'type'=>2,'mark'=> 1,'status'=> 1])->count('id');
|
|
|
$item['collect'] = $count? $count : 0;
|
|
$item['collect'] = $count? $count : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|