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);