1
This commit is contained in:
parent
234e52dafc
commit
09a62b7e7e
@ -839,9 +839,11 @@ void RoomMgr::SendGetBattleData(int mode,
|
||||
void(std::vector<BattleDataContext>&)>(cb)),
|
||||
[] (a8::XParams& param, a8::XObject& data)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
a8::XPrintf("httpget ok\n", {});
|
||||
#endif
|
||||
a8::UdpLog::Instance()->Info
|
||||
("GetBattleData ok %s",
|
||||
{
|
||||
data.ToJsonStr()
|
||||
});
|
||||
auto result = (std::shared_ptr<std::vector<BattleDataContext>>*)param.sender.GetUserData();
|
||||
auto cb = (std::function<
|
||||
void(std::vector<BattleDataContext>&)>*)param.param1.GetUserData();
|
||||
@ -855,9 +857,11 @@ void RoomMgr::SendGetBattleData(int mode,
|
||||
},
|
||||
[] (a8::XParams& param, const std::string& response)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
a8::XPrintf("httpget error\n", {});
|
||||
#endif
|
||||
a8::UdpLog::Instance()->Warning
|
||||
("GetBattleData error %s",
|
||||
{
|
||||
response
|
||||
});
|
||||
auto result = (std::shared_ptr<std::vector<BattleDataContext>>*)param.sender.GetUserData();
|
||||
auto cb = (std::function<
|
||||
void(std::vector<BattleDataContext>&)>*)param.param1.GetUserData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user