diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 273c217b..1df9b735 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1283,7 +1283,10 @@ class BattleController extends BaseAuthedController { private function getAlreadyAllocBoxNum() { - + $key = 'box_daily_already_alloc_num:' . myself()->_getNowDaySeconds(); + $r = $this->_getRedis($key); + $num = $r->get($key); + return empty($num) ? 0 : $num; } }