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