This commit is contained in:
aozhiwei 2020-09-24 20:34:49 +08:00
parent 0483f29b94
commit 827c00f01d

View File

@ -125,7 +125,7 @@ void Guild::_CMGuildJoin(f8::MsgHdr& hdr, const cs::CMGuildJoin& msg)
GuildMgr::Instance()->ForwardGuildSMMsg(hdr.socket_handle,
forward_msg->context(),
respmsg);
if (GetMember(forward_msg->context().user_info().base_data().account_id())) {
if (!GetMember(forward_msg->context().user_info().base_data().account_id())) {
DBHelper::Instance()->AddGuildApply(this, forward_msg->context().user_info());
}
}
@ -138,6 +138,8 @@ void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg)
GuildMgr::Instance()->ForwardGuildSMMsg(hdr.socket_handle,
forward_msg->context(),
respmsg);
if (!GetMember(forward_msg->context().user_info().base_data().account_id())) {
}
}
void Guild::_CMGuildKick(f8::MsgHdr& hdr, const cs::CMGuildKick& msg)