1
This commit is contained in:
parent
63f815ddd6
commit
ace3e78cdd
@ -88,6 +88,30 @@ class BattleBoxService {
|
||||
return empty($num) ? 0 : $num;
|
||||
}
|
||||
|
||||
private static function setDailyPhaseDropLastTime($phase, $time)
|
||||
{
|
||||
$key = self::DAILY_PHASE_DROP_LAST_TIME_KEY . $phase . ':' . $time;
|
||||
$r = $this->_getRedis($key);
|
||||
$lastTime = $r->get($key);
|
||||
return empty($lastTime) ? 0 : $lastTime;
|
||||
}
|
||||
|
||||
private static function setDailyPhaseDropTotalNum($phase, $time)
|
||||
{
|
||||
$key = self::DAILY_PHASE_DROP_TOTAL_KEY . $phase . ':' . $time;
|
||||
$r = $this->_getRedis($key);
|
||||
$num = $r->get($key);
|
||||
return empty($num) ? 0 : $num;
|
||||
}
|
||||
|
||||
private static function setDailyPhaseAllocNum($phase, $time)
|
||||
{
|
||||
$key = self::DAILY_PHASE_ALLOC_NUM_KEY . $phase . ':' . $time;
|
||||
$r = $this->_getRedis($key);
|
||||
$num = $r->get($key);
|
||||
return empty($num) ? 0 : $num;
|
||||
}
|
||||
|
||||
private static function getDailyPhaseAlreadyAllocNum($phase, $time)
|
||||
{
|
||||
$key = self::DAILY_PHASE_ALREADY_ALLOC_NUM_KEY . $phase . ':' . $time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user