From afd111fb68dc09dbc748cafb01f2a461d7aa5c2b Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Tue, 11 Feb 2025 17:20:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E5=B9=B3=E5=8F=B0=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sale/admin/controller/sync/SyncController.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java b/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java index 7f6eb6d..59e854c 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java @@ -262,16 +262,6 @@ public class SyncController { private JSONObject redirectAliApi(HttpServletRequest request, String uri) { - // 创建HTTP头,可以从原始请求中复制一些头信息 - HttpHeaders headers = new HttpHeaders(); - // 例如,复制Content-Type头(如果需要) - String contentType = request.getContentType() != null ? request.getContentType().toString() : "application/json"; - headers.setContentType(MediaType.parseMediaType(contentType)); - // 如果需要,还可以添加其他头信息,如Authorization等 - - // 创建HttpEntity,包含头和可能的请求体(这里假设是GET请求,所以没有请求体) - HttpEntity entity = new HttpEntity<>(headers); - RestTemplate restTemplate = new RestTemplate(); String queryString = request.getQueryString(); Map queryMap = null; try {