|
|
|
@ -77,7 +77,7 @@ public class SyncController {
|
|
|
|
|
String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service");
|
|
|
|
|
if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) {
|
|
|
|
|
uri = uri.replace("orderApi/", "");
|
|
|
|
|
changeUri(uri);
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
}
|
|
|
|
|
String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip");
|
|
|
|
|
if (StrUtil.isNotEmpty(upperServerHost)) {
|
|
|
|
@ -95,7 +95,7 @@ public class SyncController {
|
|
|
|
|
String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service");
|
|
|
|
|
if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) {
|
|
|
|
|
uri = uri.replace("busOrderApi/", "");
|
|
|
|
|
changeUri(uri);
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip");
|
|
|
|
@ -115,7 +115,7 @@ public class SyncController {
|
|
|
|
|
if (StrUtil.isNotEmpty(upperServerHost)) {
|
|
|
|
|
uri = upperServerHost + "/" + uri;
|
|
|
|
|
}
|
|
|
|
|
changeUri(uri);
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
JSONObject jsonObject = redirect(request, uri, ConstantStatus.SYNC_BUS_TYPE, BasicProcessStatus.NEW_ALL_BUS);
|
|
|
|
|
return jsonObject;
|
|
|
|
|
}
|
|
|
|
@ -129,7 +129,8 @@ public class SyncController {
|
|
|
|
|
if (StrUtil.isNotEmpty(upperServerHost)) {
|
|
|
|
|
uri = upperServerHost + "/" + uri;
|
|
|
|
|
}
|
|
|
|
|
changeUri(uri);
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
log.error(uri);
|
|
|
|
|
JSONObject jsonObject = redirect(request, uri, ConstantStatus.SYNC_BASIC_DATA, BasicProcessStatus.NEW_ALL_DATA);
|
|
|
|
|
return jsonObject;
|
|
|
|
|
}
|
|
|
|
@ -142,7 +143,7 @@ public class SyncController {
|
|
|
|
|
String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service");
|
|
|
|
|
if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) {
|
|
|
|
|
uri = uri.replace("syncToSpms/", "");
|
|
|
|
|
changeUri(uri);
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
}
|
|
|
|
|
String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip");
|
|
|
|
|
if (StrUtil.isNotEmpty(upperServerHost)) {
|
|
|
|
@ -159,7 +160,7 @@ public class SyncController {
|
|
|
|
|
String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service");
|
|
|
|
|
if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) {
|
|
|
|
|
uri = uri.replace("directToSpms/", "");
|
|
|
|
|
changeUri(uri);
|
|
|
|
|
uri = changeUri(uri);
|
|
|
|
|
}
|
|
|
|
|
String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip");
|
|
|
|
|
if (StrUtil.isNotEmpty(upperServerHost)) {
|
|
|
|
@ -265,6 +266,7 @@ public class SyncController {
|
|
|
|
|
uri = uri.replace("SP_SYNC_SERVER/", "");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
log.error("changeUri = " + uri);
|
|
|
|
|
return uri;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|