This commit is contained in:
aozhiwei 2024-08-20 16:53:08 +08:00
parent 3837e5a033
commit 346633763f

View File

@ -262,7 +262,7 @@ class RoomBattleDataService extends BaseService {
$chestLootProbArr = explode(";",$rewardMeta['chestLootProb']);
$rate = isset($chestLootProbArr[$teamRank-1]) ? $chestLootProbArr[$teamRank-1] : 0;
//error_log(json_encode($member));
if ($rate > 0 && !empty($member['box_num'])){
if ($rate > 0 && !empty($member['box_num']) && myself()->_switchIsOpen('bigEventBoxDrop')){
$rewardBox = array();
for ($i = 0; $i < $member['box_num']; ++$i) {
$rand = $rate * 100;