diff --git a/identification/interceptor/identity.go b/identification/interceptor/identity.go index bfe4a0b..f676c74 100644 --- a/identification/interceptor/identity.go +++ b/identification/interceptor/identity.go @@ -137,7 +137,7 @@ func VerifyUrl() gin.HandlerFunc { // c.Abort() // return // } - fmt.Printf("obj------>%v-----------act------->%v---systemClass------------>%v------------------context-------->%v-------->menuIdAry-------->%v-------->menuUrl-------->%v-------->err-------->%v\n", obj, act, systemClass, context.Role, menuIdAry, menuUrl, err) + fmt.Printf("obj---url--->%v-----------act------->%v---systemClass------------>%v------------------context-------->%v-------->menuIdAry-------->%v-------->menuUrl-------->%v-------->err-------->%v\n", obj, act, systemClass, context.Role, menuIdAry, menuUrl, err) //此功能暂时不开启 // if publicmethod.IsInTrue[string](obj, menuUrl) == false { // response.FailWithDetailed(gin.H{"reload": false, "code": 403}, "对不起!你没有访问此功能的权限!", c) diff --git a/initialization/route/initRoute.go b/initialization/route/initRoute.go index 601f096..82ec503 100644 --- a/initialization/route/initRoute.go +++ b/initialization/route/initRoute.go @@ -69,9 +69,6 @@ func InitialRouter() *gin.Engine { bookimgRouterApi := apirouter.RouterGroupEntry.BookImg bookimgRouterApi.RouterGroup(VerifyIdentity) - //系统授权 - systemAuthorizingApi := apirouter.RouterGroupEntry.Empowerouter - systemAuthorizingApi.RouterGroup(VerifyIdentity) //系统授权 } //验证身份接口 无需鉴权Url(主要web端使用) VerifyIdentityWeb := router.Group("") @@ -87,6 +84,10 @@ func InitialRouter() *gin.Engine { //系统权限设置 systemPowerPcApi := apirouter.RouterGroupEntry.SystemPowerRouter systemPowerPcApi.RouterGroupPc(VerifyIdentityWeb) //web端 + + //系统授权 + systemAuthorizingApi := apirouter.RouterGroupEntry.Empowerouter + systemAuthorizingApi.RouterGroup(VerifyIdentityWeb) //系统授权 } //Token身份验证 VerifyIdentityToken := router.Group("")