xielin 5 anni fa
parent
commit
1e49a33ed0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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'))