工会改名卡消耗

This commit is contained in:
hujiabin 2023-09-21 11:30:24 +08:00
parent 34744ce32c
commit c61c0a6628
3 changed files with 31 additions and 1 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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;