Wang Chen 4 gadi atpakaļ
vecāks
revīzija
26788454bd

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

@@ -23,7 +23,7 @@ class ActivityCache
 
 
     public static function zAddActivityUv($activityId, $date, $uid): bool
     public static function zAddActivityUv($activityId, $date, $uid): bool
     {
     {
-        $cacheKey = Utils::getCacheKey('activity.statUv', [$activityId, $date]);
+        $cacheKey = Utils::getCacheKey('activity.statsUv', [$activityId, $date]);
         Redis::zAdd($cacheKey, time(), $uid);
         Redis::zAdd($cacheKey, time(), $uid);
         $ttl = Redis::ttl($cacheKey);
         $ttl = Redis::ttl($cacheKey);
         if ((int)$ttl < 1) {
         if ((int)$ttl < 1) {

+ 1 - 1
app/Modules/Activity/Models/Activity.php

@@ -52,7 +52,7 @@ class Activity extends Model
     {
     {
         $result = self::where([
         $result = self::where([
             ['qapp_account_id', '>', 0],
             ['qapp_account_id', '>', 0],
-            ['end_time', '<=', date('Y-m-d H:i:s')],
+            ['end_time', '>=', date('Y-m-d H:i:s')],
         ])->get();
         ])->get();
 
 
         return $result ? $result->toArray() : [];
         return $result ? $result->toArray() : [];