diff --git a/webapp/services/BattleBoxService.php b/webapp/services/BattleBoxService.php index 82f9edd2..9cf4ec0b 100644 --- a/webapp/services/BattleBoxService.php +++ b/webapp/services/BattleBoxService.php @@ -191,7 +191,7 @@ class BattleBoxService { private static function setDailyPhaseDropLastTime($phase, $time, $val) { - $key = self::DAILY_PHASE_DROP_LAST_TIME_KEY . $phase . ':' . $time; + $key = self::DAILY_PHASE_DROP_LAST_TIME_KEY . $phase . ':' . myself()->_getDaySeconds($time); $r = myself()->_getRedis($key); $r->setPx($key, $val, 1000 * 3600 * 24 * 7); } @@ -247,6 +247,7 @@ class BattleBoxService { } else { $r->setPx($key, $num + $val, 1000 * 3600 * 24 * 7); } + self::setDailyPhaseDropLastTime($phase, $time, $time); } }