code: def check_opr_category(self, opr, category):
          
          for path in self.routes:
              route = self.routes[path]
              if opr in route['oprs'] and route['category'] == category:
                  return True
          return False
docs: 检查权限是否在指定目录下