Procházet zdrojové kódy

wesmiler 报恩寺项目提交

wesmiler před 4 roky
rodič
revize
0cab9e80f4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

@@ -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;
                 }
                 }