From 1dd4da9a7888e88340b817c013aae296bbf01ceb Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Fri, 24 Mar 2023 10:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E9=AA=8C=E8=AF=81=E9=99=90=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/order/StoreCartServices.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crmeb/app/services/order/StoreCartServices.php b/crmeb/app/services/order/StoreCartServices.php index ededd6887..d4efe3568 100644 --- a/crmeb/app/services/order/StoreCartServices.php +++ b/crmeb/app/services/order/StoreCartServices.php @@ -432,8 +432,10 @@ class StoreCartServices extends BaseServices */ public function setCartNum($uid, $productId, $num, $unique, $type) { - //检查限购 - $this->checkLimit($uid, $productId, $num, 0); + if ($type == 1) { + //检查限购 + $this->checkLimit($uid, $productId, $num, 0); + } /** @var StoreProductAttrValueServices $attrValueServices */ $attrValueServices = app()->make(StoreProductAttrValueServices::class);