From 039edab430c7993de7c8cae8293b87c025b13ca2 Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 7 Jul 2023 21:49:00 +0800 Subject: [PATCH] ... --- webapp/services/callback/BuyShopGoodsCbService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, )); }