refactor🎨: 去除log中间件日志打印
This commit is contained in:
1 parent
dad4b4cca8
commit
65e0b58be9
1 file changed
-1
@@ -22,7 +22,6 @@ func AuthCheckRole() gin.HandlerFunc {
|
||||
//检查权限
|
||||
if v["rolekey"] == "admin" {
|
||||
res = true
|
||||
log.Infof("info:%s method:%s path:%s", v["rolekey"], c.Request.Method, c.Request.URL.Path)
|
||||
} else {
|
||||
res, err = e.Enforce(v["rolekey"], c.Request.URL.Path, c.Request.Method)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user