Browse Source

去掉虚拟数

wzq 5 years ago
parent
commit
ea0c41cdc9
1 changed files with 0 additions and 14 deletions
  1. 0 14
      app/Repositories/Post/PostRepository.php

+ 0 - 14
app/Repositories/Post/PostRepository.php

@@ -302,20 +302,6 @@ class PostRepository
 
 
             DB::commit();
             DB::commit();
 
 
-            $key = 'post_info_'.$request['post_id'];
-            if ($request['add_pv']) {
-                Redis::HINCRBY($key, 'pv', $request['add_pv']);
-            }
-            if ($request['add_praise_count']) {
-                Redis::HINCRBY($key, 'praise_count', $request['add_praise_count']);
-            }
-            if ($request['add_collect_count']) {
-                Redis::HINCRBY($key, 'collect_count', $request['add_collect_count']);
-            }
-            if ($request['add_share_count']) {
-                Redis::HINCRBY($key, 'share_count', $request['add_share_count']);
-            }
-
             $virus = $this->behavior
             $virus = $this->behavior
                 ->whereIn('behavior_identification', ['read', 'forward', 'like', 'collect'])
                 ->whereIn('behavior_identification', ['read', 'forward', 'like', 'collect'])
                 ->pluck('virus_behavior_id', 'behavior_identification');
                 ->pluck('virus_behavior_id', 'behavior_identification');