xielin 5 년 전
부모
커밋
1e49a33ed0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Console/Commands/PostStatistics.php

+ 1 - 1
app/Console/Commands/PostStatistics.php

@@ -96,7 +96,7 @@ class PostStatistics extends Command
                     ->select(DB::raw('count(*) as like_count'))
                     ->first();
                 $likeCount = $like->like_count;
-            } elseif ($behavior['behavior_identification'] == 'share') {
+            } elseif ($behavior['behavior_identification'] == 'forward') {
                 $share = $this->generalRecord
                     ->where([['created_at', '>=', $yesterdayStart], ['created_at', '<=', $yesterdayEnd], ['virus_behavior_id', $behaviorId]])
                     ->select(DB::raw('count(*) as share_count'))