bug for buygoodnew

This commit is contained in:
aozhiwei 2022-11-08 17:45:03 +08:00
parent 2da7a6e7ed
commit 0e7f7565ea

View File

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