From 209feafdd8beb49acc4e65f22fe69ab025a11aaf Mon Sep 17 00:00:00 2001 From: Terry <2358269014@qq.com> Date: Wed, 24 Jan 2018 09:54:47 +0800 Subject: [PATCH] =?UTF-8?q?cart=20services=20=E4=BB=A3=E7=A0=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/Cart.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/Cart.php b/services/Cart.php index 74b11226..a0e11d1e 100644 --- a/services/Cart.php +++ b/services/Cart.php @@ -41,8 +41,9 @@ class Cart extends Service return false; } + $item['custom_option_sku'] = $custom_option_sku; } - $item['custom_option_sku'] = $custom_option_sku; + } // 检查产品满足加入购物车的条件 $productValidate = Yii::$service->cart->info->checkProductBeforeAdd($item, $product); -- GitLab