From 2b483e0da4bb633c791f600e432df5e70dad7227 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Wed, 17 Apr 2024 20:51:49 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 0e30c09e..4d5216fb 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -436,6 +436,10 @@ class BagController extends BaseAuthedController { $this->_rspErr(1, "item_id error"); return; } + if ($itemNum < 1){ + $this->_rspErr(1, "item_num error"); + return; + } if ($itemMeta['type'] != mt\Item::FUNC_TYPE) { $this->_rspErr(1, "only supported property"); return;