Explorar el Código

middleware 中按钮权限未判断修复

yxh hace 4 años
padre
commit
fc968575be
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      internal/app/system/service/middleware.go

+ 1 - 1
internal/app/system/service/middleware.go

@@ -83,7 +83,7 @@ func (s *middlewareImpl) Auth(r *ghttp.Request) {
 		return
 		return
 	}
 	}
 	//获取地址对应的菜单id
 	//获取地址对应的菜单id
-	menuList, err := Rule().GetIsMenuList(ctx)
+	menuList, err := Rule().GetMenuList(ctx)
 	if err != nil {
 	if err != nil {
 		g.Log().Error(ctx, err)
 		g.Log().Error(ctx, err)
 		libResponse.FailJson(true, r, "请求数据失败")
 		libResponse.FailJson(true, r, "请求数据失败")