diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 90c1f6b1..525cf9d7 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1243,6 +1243,7 @@ class BattleController extends BaseAuthedController { 'modifytime' => myself()->_getNowTime(), ) ); + $this->incAlreadyAllocBoxNum($boxNum); myself()->_rspData(array( 'box_num' => $boxNum )); @@ -1278,6 +1279,7 @@ class BattleController extends BaseAuthedController { 'return_time' => myself()->_getNowTime(), ) ); + $this->incAlreadyAllocBoxNum(-max(0, $allocBoxNum - $usedNum)); myself()->_rspOk(); }