From d49594b8007480c49ec07ae905f7d9dd2099790f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 7 Mar 2022 11:10:03 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 22 ++++++++++++++++++++++ webapp/mt/Item.php | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index ea53d3da..c5ba6a40 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -67,6 +67,16 @@ class BagController extends BaseAuthedController { $this->renameCard($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3); } break; + case mt\Item::DRUG_TILI_SUBTYPE: + { + $this->useTiliDrug($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3); + } + break; + case mt\Item::DRUG_DURABILITY_SUBTYPE: + { + $this->useDurabilityDrug($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3); + } + break; default: { $this->_rspErr(4, 'The prop function has not been realized yet'); @@ -214,4 +224,16 @@ class BagController extends BaseAuthedController { )); } + private function useTiliDrug($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3) + { + $errCode = 0; + $errMsg = ''; + } + + private function useDurabilityDrug($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3) + { + $errCode = 0; + $errMsg = ''; + } + } diff --git a/webapp/mt/Item.php b/webapp/mt/Item.php index d0ebb0f6..84eeb268 100644 --- a/webapp/mt/Item.php +++ b/webapp/mt/Item.php @@ -52,6 +52,8 @@ class Item { 1.改名卡 2.喇叭 3.战队改名卡 + 4.体力药剂 + 5.耐久药剂 type类型为10时,配置一下子类id 1.角色材料 @@ -75,12 +77,14 @@ class Item { const FRAGMENT_TYPE = 11; const FUNC_RENAME_CARD_SUBTYPE = 1; + const MATERIAL_CHIP_SUBTYPE = 3; + const DRUG_TILI_SUBTYPE = 4; + const DRUG_DURABILITY_SUBTYPE = 5; const DAILY_BUY_LIMIT = 1; const WEEKLY_BUY_LIMIT = 2; const TOTAL_BUY_LIMIT = 3; - const MATERIAL_CHIP_SUBTYPE = 3; public static function get($id) {