鉴权调整

This commit is contained in:
momo 2023-11-27 17:53:43 +08:00
parent 3f06fb0e09
commit 273ba1f53f

View File

@ -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)