From dd76be0e56c4c92f8225c0d034c680500fc9bb48 Mon Sep 17 00:00:00 2001 From: songliang Date: Tue, 27 Jun 2023 11:05:14 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 67485c68..296ef33a 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -836,11 +836,11 @@ class ShopController extends BaseAuthedController $token_type = getReqVal('token_type', ''); $goods_num = getReqVal('goods_num', 0); - if ($goods_num <= 1) { + if ($goods_num < 1) { $this->_rspErr(1, "goods_num parameter error, goods_num: {$goods_num}"); return; } - + $row = mt\ShopGoods::get($id); $goods_id = $row['goods_id'];