wesmiler 1 vuosi sitten
vanhempi
commit
88d6776777
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      app/Services/Api/TaskService.php
  2. 1 1
      app/Services/Api/VideoService.php

+ 1 - 0
app/Services/Api/TaskService.php

@@ -332,6 +332,7 @@ class TaskService extends BaseService
                     }
 
                     // 所有任务完成
+                    RedisService::set("caches:task:day_count_{$userId}",['list'=> $dayTaskList,'count'=> $completeCount], 600);
                     if($completeCount == count($dayTaskList)){
                         FinanceService::make()->settleTaskPower($userId, $power, 0, "每日任务奖励");
 

+ 1 - 1
app/Services/Api/VideoService.php

@@ -298,7 +298,7 @@ class VideoService extends BaseService
             'total'    => count($list),
             'list'     => $list ? $list : []
         ];
-        
+
         RedisService::set($cacheKey, $datas, rand(2,3));
         return $datas;
     }