This commit is contained in:
aozhiwei 2020-09-24 17:51:20 +08:00
parent a5778ee7d1
commit 1cda008e00

View File

@ -11,6 +11,7 @@
#include "guildmgr.h" #include "guildmgr.h"
#include "typeconvert.h" #include "typeconvert.h"
#include "utils.h" #include "utils.h"
#include "dbhelper.h"
const int GUILD_MAX_MEMBER_NUM = 50; const int GUILD_MAX_MEMBER_NUM = 50;
@ -118,14 +119,19 @@ void Guild::_CMGuildInfo(f8::MsgHdr& hdr, const cs::CMGuildInfo& msg)
void Guild::_CMGuildJoin(f8::MsgHdr& hdr, const cs::CMGuildJoin& msg) void Guild::_CMGuildJoin(f8::MsgHdr& hdr, const cs::CMGuildJoin& msg)
{ {
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
cs::SMGuildJoin respmsg; cs::SMGuildJoin respmsg;
#if 0 GuildMgr::Instance()->ForwardGuildSMMsg(hdr.socket_handle,
GuildMgr::Instance()->ForwardGuildSMMsg(socket_handle, context, respmsg); forward_msg->context(),
#endif respmsg);
DBHelper::Instance()->AddGuildApply(this, forward_msg->context().user_info());
} }
void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg) void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg)
{ {
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
cs::SMGuildAgree respmsg; cs::SMGuildAgree respmsg;
#if 0 #if 0
GuildMgr::Instance()->ForwardGuildSMMsg(socket_handle, context, respmsg); GuildMgr::Instance()->ForwardGuildSMMsg(socket_handle, context, respmsg);