From 45ecad0c80146f403b3b24f86e9a9f1b044e6729 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 9 Mar 2022 16:33:36 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 1 + webapp/models/Bag.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index a47c83a7..c669d647 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -256,6 +256,7 @@ class BagController extends BaseAuthedController { $this->_rspErr(1, "You don't have the item yet"); return; } + Bag::addDurability($targetDb['item_uniid'], $itemMeta['param1']); Bag::decItemByUnIid($itemDb['item_uniid'], $itemNum); $this->propertyChgService->addBagChg(); $this->_rspData(array( diff --git a/webapp/models/Bag.php b/webapp/models/Bag.php index e27ae235..db0b19c2 100644 --- a/webapp/models/Bag.php +++ b/webapp/models/Bag.php @@ -193,4 +193,9 @@ class Bag extends BaseModel { ); } + public static function addDurability($itemUniId, $val) + { + + } + }