From af5d7a34de623823c2838f785820775db2571d98 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 30 Aug 2024 16:45:47 +0800 Subject: [PATCH] 1 --- server/gamesapi/app/app.go | 2 +- server/gamesapi/service/sapi_forward.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/server/gamesapi/app/app.go b/server/gamesapi/app/app.go index 831f44ee..492d62e5 100644 --- a/server/gamesapi/app/app.go +++ b/server/gamesapi/app/app.go @@ -52,5 +52,5 @@ func (this *app) registerDataSources() { } func (this *app) HasTask() bool { - return false //GetMailMgr().HasTask() + return false } diff --git a/server/gamesapi/service/sapi_forward.go b/server/gamesapi/service/sapi_forward.go index a62c2aff..c248cdb2 100644 --- a/server/gamesapi/service/sapi_forward.go +++ b/server/gamesapi/service/sapi_forward.go @@ -51,6 +51,7 @@ func (this *sApiForward) init() { p.userHash = &map[string]*SApiForwardLock{} this.userCache[i] = p } + this.LoadDownStreams() } func (this *sApiForward) unInit() { @@ -184,6 +185,10 @@ func (this *sApiForward) outputMonitorLog() { } } +func (this *sApiForward) LoadDownStreams() error { + return nil +} + func (this *sApiForward) GetDownStreamHost() (string, string) { downStreams := this.downStreams if len(downStreams) <= 0 {