This commit is contained in:
aozhiwei 2020-09-25 20:05:53 +08:00
parent 924b98dd6c
commit 1a6c150d79

View File

@ -14,6 +14,14 @@
const int GUILD_MAX_MEMBER_NUM = 50; const int GUILD_MAX_MEMBER_NUM = 50;
enum GuildApplyStatus_e
{
kGuildApplyPending = 0,
kGuildApplyAgree = 1,
kGuildApplyReject = 2,
kGuildApplyIgnore = 3,
};
void Guild::Init() void Guild::Init()
{ {
logdb_ = new ss::MFGuildLogDB; logdb_ = new ss::MFGuildLogDB;
@ -155,8 +163,9 @@ void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg)
( (
msg.apply().base_data().account_id(), msg.apply().base_data().account_id(),
guild_id_, guild_id_,
1 kGuildApplyAgree
); );
ClearApplyBySenderId(msg.apply().base_data().account_id());
return; return;
} }
if (IsFull()) { if (IsFull()) {