This commit is contained in:
aozhiwei 2024-10-24 15:02:15 +08:00
parent c944176dc7
commit c7b7a688ba

View File

@ -191,7 +191,7 @@ class BattleBoxService {
private static function setDailyPhaseDropLastTime($phase, $time, $val) 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 = myself()->_getRedis($key);
$r->setPx($key, $val, 1000 * 3600 * 24 * 7); $r->setPx($key, $val, 1000 * 3600 * 24 * 7);
} }
@ -247,6 +247,7 @@ class BattleBoxService {
} else { } else {
$r->setPx($key, $num + $val, 1000 * 3600 * 24 * 7); $r->setPx($key, $num + $val, 1000 * 3600 * 24 * 7);
} }
self::setDailyPhaseDropLastTime($phase, $time, $time);
} }
} }