From c2680da930c3b1fd327029487628877b5e6e5f18 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 29 Aug 2023 10:31:36 +0800 Subject: [PATCH] fix --- server/auth/internal/svc/servicecontext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth/internal/svc/servicecontext.go b/server/auth/internal/svc/servicecontext.go index be6eaa42..872d1994 100644 --- a/server/auth/internal/svc/servicecontext.go +++ b/server/auth/internal/svc/servicecontext.go @@ -29,7 +29,7 @@ type ServiceContext struct { func NewServiceContext(c config.Config) *ServiceContext { conn := initalize.InitMysql(c.SourceMysql) // StateServer := shared.StartNode(c.ReplicaId, autoconfig.AutoGetAllServerConfig(), conn) - registerAddress := fmt.Sprintf("http://%s/api/auth/oauth2/register", c.MainAddress) + registerAddress := fmt.Sprintf("%s/api/auth/oauth2/register", c.MainAddress) return &ServiceContext{ Config: c, MysqlConn: conn,