diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 296ef33a..d5fbf5e1 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -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, )), )); diff --git a/webapp/services/callback/BuyShopGoodsCbService.php b/webapp/services/callback/BuyShopGoodsCbService.php index 30a2a8ae..c6c32eaf 100644 --- a/webapp/services/callback/BuyShopGoodsCbService.php +++ b/webapp/services/callback/BuyShopGoodsCbService.php @@ -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){