1
This commit is contained in:
parent
c944176dc7
commit
c7b7a688ba
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user