修复ingameMall.cancel问题

This commit is contained in:
aozhiwei 2024-08-23 22:56:20 +08:00
parent 64258dabf0
commit cb357b54d7

View File

@ -473,6 +473,7 @@ EOD;
return;
}
InGameMall::cancel($orderId);
$awardService = new services\AwardService();
$propertyChgService = new PropertyChgService();
switch ($goodsDb['order_type']){
case InGameMall::HERO_SKIN_TYPE :{
@ -503,6 +504,15 @@ EOD;
$propertyChgService->addChip();
}
break;
case InGameMall::GOLD_TYPE:{
myself()->_addItems(array(
array(
'item_id' => $goodsDb['item_id'],
'item_num' => $goodsDb['item_num'],
)
), $awardService, $propertyChgService);
}
break;
default : {
Bag::addItem($goodsDb['item_id'],$goodsDb['item_num']);
$propertyChgService->addBagChg();
@ -510,6 +520,7 @@ EOD;
}
myself()->_rspData(array(
'award' => $awardService->toDto(),
'property_chg' => $propertyChgService->toDto(),
));
}