This commit is contained in:
songliang 2023-06-27 14:40:37 +08:00
parent dd76be0e56
commit bf4d981ae9
2 changed files with 5 additions and 1 deletions

View File

@ -1014,6 +1014,8 @@ class ShopController extends BaseAuthedController
'order_type' => 1,
'ext_data' => json_encode(array(
'mode' => SHOP_BUY_MODE_NORMAL,
'shop_id' => $row['shop_id'],
'id' => $id,
)),
));

View File

@ -83,6 +83,7 @@ class BuyShopGoodsCbService
$this->_addGoods($address, array(
'goods_id' => $item_id,
'goods_num' => $item_num,
'id' => $ext_data['id'],
));
}
@ -132,8 +133,9 @@ class BuyShopGoodsCbService
$itemService = new ShopAddItemService();
$item_id = $goods['goods_id'];
$goods_num = $goods['goods_num'];
$id = $goods['id'];
$itemService->addItem($address, $item_id, $goods_num);
ShopBuyRecord::addWithAddress($address, $item_id, $goods_num);
ShopBuyRecord::addWithAddress($address, $id, $goods_num);
}
private function getAccountId($address){