From 51e8746a1c49a544e3c9f16470283cb28b68b64f Mon Sep 17 00:00:00 2001 From: songliang Date: Thu, 13 Jul 2023 17:47:14 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 9e65c55b..64c477b2 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -229,7 +229,7 @@ class ShopController extends BaseAuthedController 'address' => $address, 'createtime' => myself()->_getNowTime(), 'id' => $id, - 'item_id' => $goods['goods_id'], + 'item_id' => $goods['goods_id'] ? $goods['goods_id'] : 0, 'goods_num' => $goods_num, 'status' => 0, // 0-客户端申请了订单 1-订单完成 2-订单失败 )