xielin 5 years ago
parent
commit
1e49a33ed0
1 changed files with 1 additions and 1 deletions
  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'))
                     ->select(DB::raw('count(*) as like_count'))
                     ->first();
                     ->first();
                 $likeCount = $like->like_count;
                 $likeCount = $like->like_count;
-            } elseif ($behavior['behavior_identification'] == 'share') {
+            } elseif ($behavior['behavior_identification'] == 'forward') {
                 $share = $this->generalRecord
                 $share = $this->generalRecord
                     ->where([['created_at', '>=', $yesterdayStart], ['created_at', '<=', $yesterdayEnd], ['virus_behavior_id', $behaviorId]])
                     ->where([['created_at', '>=', $yesterdayStart], ['created_at', '<=', $yesterdayEnd], ['virus_behavior_id', $behaviorId]])
                     ->select(DB::raw('count(*) as share_count'))
                     ->select(DB::raw('count(*) as share_count'))