This commit is contained in:
hujiabin 2024-07-08 15:49:33 +08:00
parent 778e512bf4
commit 1c05555067
2 changed files with 10 additions and 1 deletions

View File

@ -444,7 +444,9 @@ class BagController extends BaseAuthedController {
$this->_addItems($hashItems,$this->awardService,$this->propertyChgService);
$this->propertyChgService->addBagChg();
$event = array(
'ID' => 'OpenBox',
'ID' => 'Box',
'SUB_ID' => 'open',
'SUB_KEY' => 'open_box',
'boxInfo' => array(
'item_id' => $itemMeta['id'],
'item_num' => $itemNum

View File

@ -279,6 +279,13 @@ class RoomBattleDataService extends BaseService {
$rnd = rand(1,100);
if ($rnd <= $rand){
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
$event = array(
'ID' => 'Box',
'SUB_ID' => 'drop',
'SUB_KEY' => 'drop_box',
'result' => $chestItems,
);
LogService::burialPointEvent($event);
foreach ($chestItems as $item){
array_push($reward,$item);
}