wzq 5 lat temu
rodzic
commit
ad3057770f

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -598,7 +598,7 @@ class PostRepositories
                 'id' => $topic->id,
                 'name' => $topic->name,
                 'img' => $topic->img,
-                'follow_count' => getNumber($topic->follow->count() + config('customer.add_topic_follow_count')),
+                'follow_count' => getNumber($topic->follow->count() + $topic->base_count),
             ];
         }
         return $data;

+ 1 - 1
app/Transformers/Topic/TopicDetailTransformer.php

@@ -23,7 +23,7 @@ class TopicDetailTransformer extends TransformerAbstract
             'id' => $topic['id'],
             'name' => subtext($topic['name'], 5),
             'img' => $topic['img'],
-            'follow_count' => getNumber($topic->follow->count() + config('customer.add_topic_follow_count')),
+            'follow_count' => getNumber($topic->follow->count() + $topic['base_count']),
             'is_follow' => $topic->follow->where('uid', $this->uid)->count()?1:0,
         ];
     }

+ 1 - 1
app/Transformers/Topic/TopicListTransformer.php

@@ -19,7 +19,7 @@ class TopicListTransformer extends TransformerAbstract
             'id' => $topic['id'],
             'name' => subtext($topic['name'], 5),
             'img' => $topic['img'],
-            'follow_count' => getNumber($topic->follow->count() + config('customer.add_topic_follow_count')),
+            'follow_count' => getNumber($topic->follow->count() + $topic['base_count']),
         ];
     }
 }

+ 0 - 1
config/customer.tpl

@@ -6,5 +6,4 @@ return [
     'app_service_url' => '{app_service_url}',
     'share_post_h5url' => '{share_post_h5url}',
     'share_post_bean' => '{share_post_bean}',
-    'add_topic_follow_count' => '{add_topic_follow_count}',
 ];