From e44922ab6ab8d4b09c94835c75944fca8c0098b4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 16 Oct 2024 14:19:16 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 2a856d38..775e1307 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -892,6 +892,12 @@ class BagController extends BaseAuthedController { $this->_rspErr(201, "alreay use"); return ; } + $this->_decItems(array( + array( + 'item_id' => $itemMeta['id'], + 'item_num' => 1 + ) + )); LuckySymbol::add(); myself()->_rspOk(); }