From 273ba1f53fdea9db7c89e6f3a3edb88029e6d285 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 27 Nov 2023 17:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=89=B4=E6=9D=83=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/ldap_lib/auth.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/ldap_lib/auth.go b/utils/ldap_lib/auth.go index 59392aa9..6561e50d 100644 --- a/utils/ldap_lib/auth.go +++ b/utils/ldap_lib/auth.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "fusenapi/model/gmodel" - "fusenapi/utils/basic" "net/http" "time" @@ -111,7 +110,7 @@ func (l *Ldap) VerifyAuthorityGroup(r *http.Request, options ...LdapOptions) boo if infoLdapGroup.Metadata != nil { err := json.Unmarshal(*infoLdapGroup.Metadata, &metadata) if err != nil { - basic.CodeServiceErr.Message = "系统出错" + logx.Error("系统出错", err) return false } getAllApis(metadata, &apiMaps)