From 31bb46b7c1ff4da821cfb378b3ea38e5e0857687 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 31 Jul 2023 17:00:43 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 22699789..f066c5cd 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -134,7 +134,7 @@ class ShopController extends BaseAuthedController { myself()->_rspErr(2, myself()->_getLackItemErrMsg($lackItem)); return; } - ShopBuyRecord::add($itemMeta['id'], $goodsNum); + ShopBuyRecord::add($goodsMeta['goods_id'], $goodsNum); myself()->_decItems($costItems); for ($i = 0; $i < $goodsNum; $i++) { $this->internalAddItem($awardService,