From cb357b54d739747a6aab5a5febb1457725d5df77 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 23 Aug 2024 22:56:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DingameMall.cancel=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/InGameMallController.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webapp/controller/InGameMallController.class.php b/webapp/controller/InGameMallController.class.php index ab138804..141d0dcb 100644 --- a/webapp/controller/InGameMallController.class.php +++ b/webapp/controller/InGameMallController.class.php @@ -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(), )); }