From 71152f3352f6366a17266fcb0237c927fbd3347d Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Fri, 5 May 2023 18:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=9C=B0=E5=9D=80=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/sale/admin/controller/sync/SyncController.java | 6 ++---- 1 file changed, 2 insertions(+), 4 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 bcbba5b..3783bb3 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 @@ -67,17 +67,15 @@ public class SyncController { */ @GetMapping("/udispsync/sync/testConnection") public BaseResponse testConnection(HttpServletRequest request) { - String uri = uriUtils.parseUri(request.getRequestURL().toString()); String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); if (StrUtil.isNotEmpty(upperServerHost)) { - uri = upperServerHost + "/" + uri; + upperServerHost = upperServerHost + "/udispsync/sync/testConnection"; } else { return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), request.getLocalAddr() + "服务缺少上级服务IP"); } - uri = changeUri(uri); JSONObject jsonObject = null; try { - jsonObject = redirect(request, uri); + jsonObject = redirect(request, upperServerHost); } catch (Exception e) { e.printStackTrace(); return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), request.getLocalAddr() + "服务访问上级服务" + upperServerHost + "异常");