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)