SS_IM_IMServerList改为返回所有节点
This commit is contained in:
parent
72dd914c79
commit
61cc416356
@ -122,11 +122,8 @@ void SvrMgr::_SS_IM_ReportServerInfo(f8::MsgHdr& hdr, const ss::SS_IM_ReportServ
|
||||
|
||||
void SvrMgr::_SS_IM_IMServerList(f8::MsgHdr& hdr, const ss::SS_IM_IMServerList& msg)
|
||||
{
|
||||
SvrNode* node = GetNodeBySocket(hdr.socket_handle);
|
||||
if (node) {
|
||||
ss::SS_MS_IMServerList respmsg;
|
||||
for (auto& pair : node_key_hash_) {
|
||||
if (node != pair.second) {
|
||||
auto p = respmsg.add_server_list();
|
||||
p->set_instance_id(pair.second->instance_id);
|
||||
p->set_online_num(pair.second->online_num);
|
||||
@ -134,10 +131,8 @@ void SvrMgr::_SS_IM_IMServerList(f8::MsgHdr& hdr, const ss::SS_IM_IMServerList&
|
||||
p->set_port(pair.second->port);
|
||||
p->set_servicing(pair.second->servicing);
|
||||
}
|
||||
}
|
||||
IMListener::Instance()->SendMsg(hdr.socket_handle, respmsg);
|
||||
}
|
||||
}
|
||||
|
||||
void SvrMgr::___GSList(f8::JsonHttpRequest* request)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user