This commit is contained in:
aozhiwei 2024-07-30 18:56:44 +08:00
parent 9cd4413b8c
commit 6aa85ac370
8 changed files with 14 additions and 14 deletions

View File

@ -103,7 +103,7 @@ void BoxDrop::RequestAllocBoxNum()
//cb(1, "custom battle data error", nullptr);
}
},
url.c_str(),
url,
url_params
);
}
@ -148,7 +148,7 @@ void BoxDrop::RequestReturnBoxNum()
//cb(1, "custom battle data error", nullptr);
}
},
url.c_str(),
url,
url_params
);
}

View File

@ -63,7 +63,7 @@ void HttpProxy::UnInit()
std::string HttpProxy::HttpGet(
f8::HttpProxyCb cb,
const char* url,
const std::string& url,
std::shared_ptr<a8::MutableXObject> url_params
)
{
@ -128,7 +128,7 @@ std::string HttpProxy::HttpGet(
std::string HttpProxy::HttpPost(
f8::HttpProxyCb cb,
const char* url,
const std::string& url,
std::shared_ptr<a8::MutableXObject> url_params,
const std::string& content
)
@ -213,7 +213,7 @@ void HttpProxy::DestoryRequest(std::shared_ptr<HttpProxyRequest> request)
request_hash_.erase(request->req_id);
}
void HttpProxy::AddSignParams(const char* url,
void HttpProxy::AddSignParams(const std::string& url,
std::shared_ptr<a8::MutableXObject> url_params, const std::string& post_data)
{

View File

@ -19,12 +19,12 @@ class HttpProxy : public a8::Singleton<HttpProxy>
std::string HttpGet(
f8::HttpProxyCb cb,
const char* url,
const std::string& url,
std::shared_ptr<a8::MutableXObject> url_params
);
std::string HttpPost(
f8::HttpProxyCb cb,
const char* url,
const std::string& url,
std::shared_ptr<a8::MutableXObject> url_params,
const std::string& content
);
@ -35,7 +35,7 @@ class HttpProxy : public a8::Singleton<HttpProxy>
private:
std::string CreateRequestId();
void AddSignParams(const char* url,
void AddSignParams(const std::string& url,
std::shared_ptr<a8::MutableXObject> url_params, const std::string& post_data);
private:

View File

@ -3667,7 +3667,7 @@ void Human::SendPersonalBattleReport()
});
}
},
url.c_str(),
url,
params
);
}

View File

@ -1424,7 +1424,7 @@ void Player::_CMRevive(f8::MsgHdr* hdr, const cs::CMRevive& msg)
a8::UnSetBitFlag(hum->status, CS_Reviving);
}
},
url.c_str(),
url,
url_params
);
}

View File

@ -2262,7 +2262,7 @@ void Room::TryMobaReport(int try_count)
});
}
},
url.c_str(),
url,
params,
content
);
@ -4137,7 +4137,7 @@ void Room::TryRoomReport(int try_count)
room->StartOverTimer();
}
},
url.c_str(),
url,
params,
content
);

View File

@ -661,7 +661,7 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
cb(1, "custom battle data error", nullptr);
}
},
url.c_str(),
url,
url_params,
join_msg->payload_data()
);

View File

@ -265,7 +265,7 @@ void Team::SendTeamBattleReport(Human* sender)
}
}
},
url.c_str(),
url,
params,
post_data->ToJsonStr()
);