...
This commit is contained in:
parent
dd76be0e56
commit
bf4d981ae9
@ -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,
|
||||
)),
|
||||
));
|
||||
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user