diff --git a/webapp/services/BattleBoxService.php b/webapp/services/BattleBoxService.php index 3a445a33..24b63a33 100644 --- a/webapp/services/BattleBoxService.php +++ b/webapp/services/BattleBoxService.php @@ -99,17 +99,19 @@ class BattleBoxService { } } if ($boxNum > 0) { - SqlHelper::insert( - myself()->_getSelfMysql(), - 't_box_alloc', - array( - 'room_uuid' => $roomUuid, - 'account_id' => myself()->_getAccountId(), - 'box_num' => $boxNum, - 'createtime' => myself()->_getNowTime(), - 'modifytime' => myself()->_getNowTime(), - ) - ); + if (getReqVal('c', '') != 'Tools') { + SqlHelper::insert( + myself()->_getSelfMysql(), + 't_box_alloc', + array( + 'room_uuid' => $roomUuid, + 'account_id' => myself()->_getAccountId(), + 'box_num' => $boxNum, + 'createtime' => myself()->_getNowTime(), + 'modifytime' => myself()->_getNowTime(), + ) + ); + } self::incAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds(), $boxNum); } return $boxNum;