This commit is contained in:
aozhiwei 2020-09-25 14:16:59 +08:00
parent e5c90e2642
commit f3c59b8a94

View File

@ -138,6 +138,18 @@ void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg)
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data; ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
cs::SMGuildAgree respmsg; cs::SMGuildAgree respmsg;
if (GetMember(forward_msg->context().user_info().base_data().account_id())) {
GuildMgr::Instance()->ForwardGuildSMMsg(hdr.socket_handle,
forward_msg->context(),
respmsg);
DBHelper::Instance()->SetGuildApplyStatus
(
msg.apply().base_data().account_id(),
guild_id,
1
);
return;
}
if (IsFull()) { if (IsFull()) {
respmsg.set_errcode(1); respmsg.set_errcode(1);
respmsg.set_errmsg("公会人数已达上限"); respmsg.set_errmsg("公会人数已达上限");