http->https

This commit is contained in:
yangduo 2025-01-02 19:28:32 +08:00
parent 983277ae4a
commit bb5bb8bdb9
2 changed files with 5 additions and 5 deletions

View File

@ -2548,7 +2548,7 @@ void Human::SendBattleReport()
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 { } else {
if (JsonDataMgr::Instance()->channel != 0) { if (JsonDataMgr::Instance()->channel != 0) {
url = a8::Format("http://game2004api-test.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport", url = a8::Format("https://game2004api-test.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport",
{ {
JsonDataMgr::Instance()->channel JsonDataMgr::Instance()->channel
}); });
@ -2559,18 +2559,18 @@ void Human::SendBattleReport()
} else { } else {
if (JsonDataMgr::Instance()->channel != 0) { if (JsonDataMgr::Instance()->channel != 0) {
if (kTouTiaoChannelId == JsonDataMgr::Instance()->channel) { if (kTouTiaoChannelId == JsonDataMgr::Instance()->channel) {
url = a8::Format("http://game2004api-al.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport", url = a8::Format("https://game2004api-al.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport",
{ {
JsonDataMgr::Instance()->channel JsonDataMgr::Instance()->channel
}); });
} else { } else {
url = a8::Format("http://game2004api.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport", url = a8::Format("https://game2004api.kingsome.cn/%d/webapp/index.php?c=Role&a=battleReport",
{ {
JsonDataMgr::Instance()->channel JsonDataMgr::Instance()->channel
}); });
} }
} else { } else {
url = "http://game2004api.kingsome.cn/webapp/index.php?c=Role&a=battleReport"; url = "https://game2004api.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
} }
} }
JsonDataMgr::Instance()->GetBattleReportUrl(url); JsonDataMgr::Instance()->GetBattleReportUrl(url);

View File

@ -374,7 +374,7 @@ void RoomMgr::ReportServerState(int instance_id, const std::string& host, int po
}, },
&RoomMgr::Instance()->reportstate_timer_attacher_.timer_list_); &RoomMgr::Instance()->reportstate_timer_attacher_.timer_list_);
}; };
std::string url = a8::Format("http://%s:%d/webapp/index.php?c=GS&a=report&", std::string url = a8::Format("https://%s:%d/webapp/index.php?c=GS&a=report&",
{ {
host, host,
port port