From da569980b7baea9631a7c899dbbea087b9195eba Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 06 九月 2023 11:32:16 +0800 Subject: [PATCH] 关闭鉴权 --- api-gateway/main.go | 3 ++- system-service/main.go | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/api-gateway/main.go b/api-gateway/main.go index 58445fa..688e7db 100644 --- a/api-gateway/main.go +++ b/api-gateway/main.go @@ -64,7 +64,8 @@ //util.AuthCheck(ctx) go func() { r := gin.Default() - r.Use(auth.AuthHandler()) + //鎺堟潈妫�鏌� 鏆傛椂鍏抽棴 + //r.Use(auth.AuthHandler()) r.Any("/data/*any", client.AnyRequest) r.Run("0.0.0.0:8888") }() diff --git a/system-service/main.go b/system-service/main.go index d116763..eebb524 100644 --- a/system-service/main.go +++ b/system-service/main.go @@ -47,9 +47,10 @@ func main() { // pprof 鐢ㄤ簬鍒嗘瀽鎬ц兘 - go func() { - logger.Info(http.ListenAndServe("0.0.0.0:6078", nil)) - }() + //go func() { + // logger.Info(http.ListenAndServe("0.0.0.0:6078", nil)) + //}() + models.Init() defer models.CloseDB() models.GetDB().SetLogger(&serf.DbLogger{}) @@ -269,7 +270,7 @@ return funcMap, pubTopics } -//娴嬭瘯鎺ユ敹鍏ㄧ綉娑堟伅 +// 娴嬭瘯鎺ユ敹鍏ㄧ綉娑堟伅 func dealSubMsg(ctx context.Context, ms *bhomeclient.MicroNode) { for { select { -- Gitblit v1.8.0