1
This commit is contained in:
parent
22f1222392
commit
6b806ff307
@ -229,13 +229,14 @@ void AsyncTaskMgr::CreateNewGuildTask(const ss::MFIMMsgConext& context, const cs
|
||||
(
|
||||
conn_info,
|
||||
"INSERT INTO `guild`(guild_id, guild_name, guild_lv, guild_exp, guild_badge, guild_declaration, "
|
||||
" owner_id, creator_id, guild_data, createtime, modifytime)"
|
||||
"VALUES(%d, '%s', 1, 0, %d, '%s', '%s', '%s', '%s', %d, %d);",
|
||||
" guild_status, owner_id, creator_id, guild_data, createtime, modifytime)"
|
||||
"VALUES(%d, '%s', 1, 0, %d, '%s', '%s', %d, '%s', '%s', %d, %d);",
|
||||
{
|
||||
guild_id,
|
||||
msg.guild_name(),
|
||||
msg.guild_badge(),
|
||||
msg.guild_declaration(),
|
||||
kGuildCreatePending,
|
||||
context.user_info().base_data().account_id(),
|
||||
context.user_info().base_data().account_id(),
|
||||
"",
|
||||
|
@ -8,6 +8,13 @@ enum SocketFrom_e
|
||||
SF_MSConn,
|
||||
};
|
||||
|
||||
enum GuildStatus_e
|
||||
{
|
||||
kGuildCreatePending = 0,
|
||||
kGuildCreated = 1,
|
||||
kGuildDismissed = 2
|
||||
};
|
||||
|
||||
enum InnerMesssage_e
|
||||
{
|
||||
IM_WSProxyDisconnect = 100,
|
||||
|
@ -101,6 +101,7 @@ CREATE TABLE `guild` (
|
||||
`owner_id` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '公会主',
|
||||
`creator_id` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '公会创建者',
|
||||
`guild_data` mediumblob COMMENT '公会数据',
|
||||
`guild_status` int(11) NOT NULL DEFAULT '0' COMMENT '公会状态 0:新建(未确认) 1:已确认 2:已解散',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
|
Loading…
x
Reference in New Issue
Block a user