Wang Chen 4 years ago
parent
commit
9e10b52e6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Cache/Activity/ActivityCache.php

+ 2 - 2
app/Cache/Activity/ActivityCache.php

@@ -41,7 +41,7 @@ class ActivityCache
      */
     public static function getActivityPv($activityId, $date): int
     {
-        $cacheKey = Utils::getCacheKey('activity.statPv', [$activityId, $date]);
+        $cacheKey = Utils::getCacheKey('activity.statsPv', [$activityId, $date]);
         $exist    = Redis::exists($cacheKey);
         if (!$exist) {
             return 0;
@@ -58,7 +58,7 @@ class ActivityCache
      */
     public static function getActivityUv($activityId, $date): int
     {
-        $cacheKey = Utils::getCacheKey('activity.statUv', [$activityId, $date]);
+        $cacheKey = Utils::getCacheKey('activity.statsUv', [$activityId, $date]);
         $exist    = Redis::exists($cacheKey);
         if (!$exist) {
             return 0;