Explorar el Código

wesmiler 报恩寺项目提交

wesmiler hace 4 años
padre
commit
0cab9e80f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

@@ -139,7 +139,7 @@ class DynamicService extends BaseService
                 // 关注数量
                 $item['collect'] = 0;
                 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;
                 }