From 64e190056ba1101a3ea9a03436f22f933f072594 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 30 Jul 2023 12:33:27 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 87304b57..ee5415ab 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -160,7 +160,7 @@ class ShopController extends BaseAuthedController { myself()->_rspErr(2, myself()->_getLackItemErrMsg($lackItem)); return; } - ShopBuyRecord::add($id, $goodsNum); + ShopBuyRecord::add($itemMeta['id'], $goodsNum); myself()->_decItems($costItems); for ($i = 0; $i < $goodsNum; $i++) { $this->internalAddItem($awardService, @@ -174,7 +174,6 @@ class ShopController extends BaseAuthedController { array( 'award' => $awardService->toDto(), 'property_chg' => $propertyChgService->toDto(), - //'goods_chg' => $goodsDto ) ); }