1
This commit is contained in:
parent
c8c5c6c7fa
commit
8fb1ed53b1
@ -550,8 +550,14 @@ void Guild::_CMGuildChange(f8::MsgHdr& hdr, const cs::CMGuildChange& msg)
|
|||||||
ss::SS_IM_ForwardGuildCMMsg *forward_msg_copy = (ss::SS_IM_ForwardGuildCMMsg*)param.param1.GetUserData();
|
ss::SS_IM_ForwardGuildCMMsg *forward_msg_copy = (ss::SS_IM_ForwardGuildCMMsg*)param.param1.GetUserData();
|
||||||
cs::CMGuildChange* msg_copy = (cs::CMGuildChange*)param.param3.GetUserData();
|
cs::CMGuildChange* msg_copy = (cs::CMGuildChange*)param.param3.GetUserData();
|
||||||
Guild* guild = GuildMgr::Instance()->GetGuild(param.sender);
|
Guild* guild = GuildMgr::Instance()->GetGuild(param.sender);
|
||||||
if (guild) {
|
if (guild && data.GetType() == a8::XOT_OBJECT) {
|
||||||
guild->GuildRenameCb(param.param2, forward_msg_copy->context(), *msg_copy);
|
if (data.HasKey("errcode") && data.At("errcode")->AsXValue().GetInt() == 0) {
|
||||||
|
guild->GuildRenameCb(param.param2, forward_msg_copy->context(), *msg_copy);
|
||||||
|
} else {
|
||||||
|
guild->SendErrorMsg(param.param2,
|
||||||
|
forward_msg_copy->context(),
|
||||||
|
data.Get("errmsg", "服务器内部错误"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
delete msg_copy;
|
delete msg_copy;
|
||||||
delete forward_msg_copy;
|
delete forward_msg_copy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user