Browse Source

middleware 中按钮权限未判断修复

yxh 4 năm trước cách đây
mục cha
commit
7ca1df19ad
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}
 	//获取地址对应的菜单id
-	menuList, err := Rule().GetIsMenuList(ctx)
+	menuList, err := Rule().GetMenuList(ctx)
 	if err != nil {
 		g.Log().Error(ctx, err)
 		libResponse.FailJson(true, r, "请求数据失败")