From 0e7f7565ea1314ae05601dc9a75eb876b54972e6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 8 Nov 2022 17:45:03 +0800 Subject: [PATCH] bug for buygoodnew --- webapp/controller/ShopController.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 74228cfb..c0d4a031 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -162,7 +162,9 @@ class ShopController extends BaseAuthedController { $itemMeta = mt\Item::get($row['goods_id']); $propertyChgService = new services\PropertyChgService(); - $this->internalAddItem($propertyChgService, $itemMeta); + for ($i = 0; $i<$goods_num; $i++) { + $this->internalAddItem($propertyChgService, $itemMeta); + } $awardService = new services\AwardService(); $awardService->addItem($row['goods_id'], $goods_num); ShopBuyRecord::add($id, $goods_num);