From 08282ac0d0086573ab8780d5707cf24882c3794e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 31 Jul 2024 14:06:28 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } }