|
|
|
@ -72,7 +72,7 @@ public class SyncController {
|
|
|
|
|
if (StrUtil.isNotEmpty(upperServerHost)) {
|
|
|
|
|
uri = upperServerHost + "/" + uri;
|
|
|
|
|
} else {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), request.getRemoteHost() + "服务缺少上级服务IP");
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), request.getLocalAddr() + "服务缺少上级服务IP");
|
|
|
|
|
}
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
JSONObject jsonObject = null;
|
|
|
|
@ -80,7 +80,7 @@ public class SyncController {
|
|
|
|
|
jsonObject = redirect(request, uri);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), request.getRemoteHost() + "服务访问上级服务" + upperServerHost + "异常");
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), request.getLocalAddr() + "服务访问上级服务" + upperServerHost + "异常");
|
|
|
|
|
}
|
|
|
|
|
BaseResponse response = JSONUtil.toBean(jsonObject.toJSONString(), BaseResponse.class);
|
|
|
|
|
if ("20000".equals(response.getCode())) {
|
|
|
|
|