上报接口添加渠道判断
This commit is contained in:
parent
41787f8d59
commit
47e2112319
@ -23,6 +23,7 @@
|
|||||||
#include "buff.h"
|
#include "buff.h"
|
||||||
#include "roomobstacle.h"
|
#include "roomobstacle.h"
|
||||||
#include "aicomponent.h"
|
#include "aicomponent.h"
|
||||||
|
#include "jsondatamgr.h"
|
||||||
|
|
||||||
#include "framework/cpp/utils.h"
|
#include "framework/cpp/utils.h"
|
||||||
#include "framework/cpp/httpclientpool.h"
|
#include "framework/cpp/httpclientpool.h"
|
||||||
@ -2527,12 +2528,26 @@ void Human::SendBattleReport()
|
|||||||
if (!f8::IsOnlineEnv()) {
|
if (!f8::IsOnlineEnv()) {
|
||||||
if (App::Instance()->HasFlag(3)) {
|
if (App::Instance()->HasFlag(3)) {
|
||||||
url = "http://192.168.100.41/webapp/index.php?c=Role&a=battleReport";
|
url = "http://192.168.100.41/webapp/index.php?c=Role&a=battleReport";
|
||||||
|
} else {
|
||||||
|
if (JsonDataMgr::Instance()->channel != 0) {
|
||||||
|
url = a8::Format("http://game2004api-test.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport",
|
||||||
|
{
|
||||||
|
JsonDataMgr::Instance()->channel
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
url = "https://game2004api-test.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
|
url = "https://game2004api-test.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (JsonDataMgr::Instance()->channel != 0) {
|
||||||
|
url = a8::Format("http://game2004api.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport",
|
||||||
|
{
|
||||||
|
JsonDataMgr::Instance()->channel
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
url = "http://game2004api.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
|
url = "http://game2004api.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
std::string data;
|
std::string data;
|
||||||
params->ToUrlEncodeStr(data);
|
params->ToUrlEncodeStr(data);
|
||||||
f8::HttpClientPool::Instance()->HttpGet(
|
f8::HttpClientPool::Instance()->HttpGet(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user