xielin vor 5 Jahren
Ursprung
Commit
1e49a33ed0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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'))