From 43feb7702968600575b54b6c73eb373ccf24b7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E5=8B=87?= Date: Wed, 15 Nov 2023 10:57:49 +0800 Subject: [PATCH] =?UTF-8?q?is=5Fpersist=20=E5=AE=9E=E9=99=85=E6=89=A3?= =?UTF-8?q?=E9=81=93=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/BagController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 66e19b1e..c18bbfce 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -60,7 +60,11 @@ class BagController extends BaseAuthedController { $this->_rspErr(3, $this->_getLackItemErrMsg($lackItem)); return; } - $this->_decItems($costItems); + + $isPersist = getReqVal('is_persist', 0); + if ($isPersist == 1) { + $this->_decItems($costItems); + } $this->_rspOk(); }