From 6381c81ae23170becdd81fb175a82564456786b5 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 3 Jul 2023 15:59:58 +0800 Subject: [PATCH] ... --- webapp/services/callback/BuyShopGoodsCbService.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webapp/services/callback/BuyShopGoodsCbService.php b/webapp/services/callback/BuyShopGoodsCbService.php index b42bb464..c3e82177 100644 --- a/webapp/services/callback/BuyShopGoodsCbService.php +++ b/webapp/services/callback/BuyShopGoodsCbService.php @@ -133,8 +133,11 @@ class BuyShopGoodsCbService $item_id = $goods['goods_id']; $goods_num = $goods['goods_num']; - $id = $goods['id']; - + $id = null; + if ($goods['id']) { + $id = $goods['id']; + } + error_log(json_encode($goods)); error_log('_addGoods ' . $address . ' item_id ' . $item_id . ' goods_num ' . $goods_num . ' id ' . $id); $itemService->addItem($address, $item_id, $goods_num);