diff --git a/sql/gamedb2006_migrate_230920_01.sql b/sql/gamedb2006_migrate_230920_01.sql new file mode 100644 index 00000000..aeeecb19 --- /dev/null +++ b/sql/gamedb2006_migrate_230920_01.sql @@ -0,0 +1,17 @@ +begin; + +CREATE TABLE `t_mail` ( + `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', + `mailid` bigint NOT NULL DEFAULT '0' COMMENT '邮件id', + `confirmed` int(11) NOT NULL DEFAULT '0' COMMENT 'confirmed', + `attachments` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '附件', + `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + KEY `account_id_mailid` (`account_id`, `mailid`) +) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + +insert into version (version) values(2023091301); + +commit; diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index e5f532be..25aa1e6a 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -75,6 +75,18 @@ class BagController extends BaseAuthedController { $this->renameCard($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3); } break; + case mt\Item::FUNC_GUILD_CARD_SUBTYPE: + { + $this->_decItems(array( + array( + 'item_id' => $itemMeta['id'], + 'item_num' => 1 + ) + )); + $this->_rspOk(); + return; + } + break; case mt\Item::DRUG_TILI_SUBTYPE: { $this->useTiliDrug($itemDb, $itemMeta, $itemNum, $param1, $param2, $param3); diff --git a/webapp/mt/Item.php b/webapp/mt/Item.php index 009c53e0..9b2e3ce0 100644 --- a/webapp/mt/Item.php +++ b/webapp/mt/Item.php @@ -106,12 +106,13 @@ class Item { const PLANET_TYPE = 28; const FUNC_RENAME_CARD_SUBTYPE = 1; - const MATERIAL_CHIP_SUBTYPE = 3; + const FUNC_GUILD_CARD_SUBTYPE = 3; const DRUG_TILI_SUBTYPE = 4; const DRUG_DURABILITY_SUBTYPE = 5; const ROLE_CHIP_SUBTYPE = 1; const GUN_CHIP_SUBTYPE = 2; + const MATERIAL_CHIP_SUBTYPE = 3; const HERO_FRAGMENT_SUBTYPE = 1; const HERO_FRAGMENT_SUBTYPE_PRO = 3;