1
This commit is contained in:
parent
9fbe2a8dd7
commit
e2cf8485e2
@ -202,6 +202,7 @@ class RoomBattleDataService extends BaseService {
|
||||
}
|
||||
$rewardMeta = mt\BattleReward::find($mapModeMeta['rewardMode'],$accountLucky);
|
||||
if (!$rewardMeta){
|
||||
error_log('ERROR:'.$this->mapMode.' settlementReward,user have lucky '.$accountLucky);
|
||||
return ;
|
||||
}
|
||||
$hashRateValue = 0;
|
||||
@ -351,6 +352,15 @@ class RoomBattleDataService extends BaseService {
|
||||
//宝箱掉落
|
||||
$chestLootProbArr = explode(";",$rewardMeta['chestLootProb']);
|
||||
$rate = isset($chestLootProbArr[$teamRank-1]) ? $chestLootProbArr[$teamRank-1] : 0;
|
||||
if ($member['account_id'] == "2_2006_QmoeZ5t2ecIq6dVNyi9jQj5CzTUB0bGC"){
|
||||
error_log("BoxMap:".json_encode(
|
||||
array(
|
||||
'rate' => $rate,
|
||||
'box_num' => $member['box_num'],
|
||||
'switch' => myself()->_switchIsOpen('bigEventBoxDrop'),
|
||||
)
|
||||
));
|
||||
}
|
||||
if ($rate > 0 && !empty($member['box_num']) && myself()->_switchIsOpen('bigEventBoxDrop')){
|
||||
$rewardBox = array();
|
||||
$realBoxNum = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user