liujie
2026-07-23 460892d3ce119a727d752c30e97329a8996f51af
ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/RequestParamGlobalFilter.java
@@ -61,6 +61,10 @@
      if(method != HttpMethod.POST){
         return chain.filter(exchange);
      }
      MediaType contentType = request.getHeaders().getContentType();
      if (contentType == null || !MediaType.APPLICATION_JSON.isCompatibleWith(contentType)) {
         return chain.filter(exchange);
      }
      ServerHttpRequestDecorator httpRequestDecorator = requestDecorator(exchange);
      return chain.filter(exchange.mutate().request(httpRequestDecorator).build());
   }