From da92a53b48afc13a5687457495b81f8359f2bd72 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Fri, 1 Nov 2024 15:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B8=85=E9=99=A4=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreGoodsCartLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/logic/LocalStoreGoodsCartLogic.php b/app/api/logic/LocalStoreGoodsCartLogic.php index f0d1f90d..0ee814d5 100644 --- a/app/api/logic/LocalStoreGoodsCartLogic.php +++ b/app/api/logic/LocalStoreGoodsCartLogic.php @@ -149,7 +149,7 @@ class LocalStoreGoodsCartLogic extends Logic { Db::startTrans(); try { - if (isset($post['cart_id']) > 0) { + if ($post['cart_id'] > 0) { // 清空购物车单独的商品 LocalStoreGoodsCart::where([ 'id' => $post['cart_id'],