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'],