From 13f4c0cca469bf2138995052eb32e50001649379 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 30 Aug 2024 17:18:04 +0800 Subject: [PATCH] 1 --- server/gamesapi/mt/Config.go | 4 ++++ server/gamesapi/service/sapi_forward.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/gamesapi/mt/Config.go b/server/gamesapi/mt/Config.go index 6f3cde3a..42b79adb 100644 --- a/server/gamesapi/mt/Config.go +++ b/server/gamesapi/mt/Config.go @@ -22,6 +22,10 @@ func (this *ConfigTable) GetRedirectUrl() string { return this.selfConf.GetRedirectUrl() } +func (this *ConfigTable) GetRedirectHost() string { + return this.selfConf.GetRedirectUrl() +} + func (this *ConfigTable) GetSecretKey() string { return this.selfConf.GetSecretKey() } diff --git a/server/gamesapi/service/sapi_forward.go b/server/gamesapi/service/sapi_forward.go index eefae82d..d5ca2fe7 100644 --- a/server/gamesapi/service/sapi_forward.go +++ b/server/gamesapi/service/sapi_forward.go @@ -226,5 +226,5 @@ func (this *sApiForward) GetDownStreamHost() (string, string) { return mt.Table.Config.GetRedirectUrl(), "" } downStream := downStreams[rand.Intn(len(downStreams))] - return downStream.url, downStream.host + return downStream.url, mt.Table.Config.GetRedirectHost() }