1
This commit is contained in:
parent
c2c4cb941d
commit
ee9b8845f5
@ -265,7 +265,27 @@ void GuildMgr::_CMGuildCreate(int socket_handle, const ss::MFIMMsgConext& contex
|
|||||||
ForwardGuildSMMsg(socket_handle, context, respmsg);
|
ForwardGuildSMMsg(socket_handle, context, respmsg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AsyncTaskMgr::Instance()->CreateNewGuildTask(context, msg);
|
std::string ip;
|
||||||
|
int port = 0;
|
||||||
|
JsonDataMgr::Instance()->GetRankServerConf(ip, port);
|
||||||
|
|
||||||
|
a8::MutableXObject* params = a8::MutableXObject::NewObject();
|
||||||
|
f8::HttpClientPool::Instance()->HttpGet
|
||||||
|
(
|
||||||
|
a8::XParams(),
|
||||||
|
[] (a8::XParams& param, a8::XObject& data)
|
||||||
|
{
|
||||||
|
|
||||||
|
},
|
||||||
|
[] (a8::XParams& param, const std::string& response)
|
||||||
|
{
|
||||||
|
|
||||||
|
},
|
||||||
|
a8::Format("http://%s:%d/webapp/index.php?c=Guild&a=create", {ip, port}).c_str(),
|
||||||
|
*params,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
delete params;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuildMgr::_CMGuildSearch(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildSearch& msg)
|
void GuildMgr::_CMGuildSearch(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildSearch& msg)
|
||||||
|
@ -77,3 +77,4 @@ class GuildMgr : public a8::Singleton<GuildMgr>
|
|||||||
std::set<long long> pending_guild_hash_;
|
std::set<long long> pending_guild_hash_;
|
||||||
std::map<long long, std::list<AsyncGuildTask*>> task_hash_;
|
std::map<long long, std::list<AsyncGuildTask*>> task_hash_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user