From a3ae202258de2bd4143d58af13c1c18b8dacb64c Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Tue, 19 Nov 2019 10:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=B1=BB=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/api/controller/order/StoreOrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/api/controller/order/StoreOrderController.php b/crmeb/app/api/controller/order/StoreOrderController.php index 01293033..3e17953f 100644 --- a/crmeb/app/api/controller/order/StoreOrderController.php +++ b/crmeb/app/api/controller/order/StoreOrderController.php @@ -516,7 +516,7 @@ class StoreOrderController else if($cartInfo['cart_info']['seckill_id']) $productId = $cartInfo['cart_info']['product_id']; else if($cartInfo['cart_info']['bargain_id']) $productId = $cartInfo['cart_info']['product_id']; else $productId = $cartInfo['product_id']; - if($group['pics']) $group['pics'] = json_encode(explode(',',$group['pics'])); + if($group['pics']) $group['pics'] = json_encode(is_array($group['pics']) ? $group['pics']: explode(',',$group['pics'])); $group = array_merge($group,[ 'uid'=>$uid, 'oid'=>$cartInfo['oid'],