diff --git a/webapp/services/callback/BuyShopGoodsCbService.php b/webapp/services/callback/BuyShopGoodsCbService.php index ef61194e..ce3ed90f 100644 --- a/webapp/services/callback/BuyShopGoodsCbService.php +++ b/webapp/services/callback/BuyShopGoodsCbService.php @@ -76,13 +76,17 @@ class BuyShopGoodsCbService $address = $order['address']; $item_id = $order['item_id']; $item_num = $order['item_num']; + $id = null; + if (isset($ext_data['id'])) { + $id = $ext_data['id']; + } error_log("callback buynormal address: $address, order_id: $order_id, goods_id: $item_id, goods_num: $item_num"); $this->_addGoods($address, array( 'goods_id' => $item_id, 'goods_num' => $item_num, - 'id' => $ext_data['id'], + 'id' => $id, )); }