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" {
|
if v["rolekey"] == "admin" {
|
||||||
res = true
|
res = true
|
||||||
log.Infof("info:%s method:%s path:%s", v["rolekey"], c.Request.Method, c.Request.URL.Path)
|
|
||||||
} else {
|
} else {
|
||||||
res, err = e.Enforce(v["rolekey"], c.Request.URL.Path, c.Request.Method)
|
res, err = e.Enforce(v["rolekey"], c.Request.URL.Path, c.Request.Method)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user