|  |  | @ -76,6 +76,10 @@ public class SyncController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); |  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { |  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             uri = uri.replace("orderApi/", ""); |  |  |  |             uri = uri.replace("orderApi/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (uri.contains("SP_SYNC_SERVER")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 uri = uri.replace("SP_SYNC_SERVER/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); |  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { |  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -93,6 +97,10 @@ public class SyncController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); |  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { |  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             uri = uri.replace("busOrderApi/", ""); |  |  |  |             uri = uri.replace("busOrderApi/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (uri.contains("SP_SYNC_SERVER")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 uri = uri.replace("SP_SYNC_SERVER/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); |  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { |  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -136,6 +144,11 @@ public class SyncController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); |  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { |  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             uri = uri.replace("syncToSpms/", ""); |  |  |  |             uri = uri.replace("syncToSpms/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (uri.contains("SP_SYNC_SERVER")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 uri = uri.replace("SP_SYNC_SERVER/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); |  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { |  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -152,6 +165,9 @@ public class SyncController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); |  |  |  |         String isTopService = systemParamConfigService.selectValueByParamKey("is_top_service"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { |  |  |  |         if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             uri = uri.replace("directToSpms/", ""); |  |  |  |             uri = uri.replace("directToSpms/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (uri.contains("SP_SYNC_SERVER")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 uri = uri.replace("SP_SYNC_SERVER/", ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); |  |  |  |         String upperServerHost = systemParamConfigService.selectValueByParamKey("upper_server_ip"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { |  |  |  |         if (StrUtil.isNotEmpty(upperServerHost)) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -163,13 +179,14 @@ public class SyncController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     private JSONObject redirectNolog(HttpServletRequest request, String uri) { |  |  |  |     private JSONObject redirectNolog(HttpServletRequest request, String uri) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         log.info("uri === " + uri); | 
			
		
	
		
		
			
				
					
					|  |  |  |         RestTemplate restTemplate = new RestTemplate(); |  |  |  |         RestTemplate restTemplate = new RestTemplate(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         HttpEntity<String> httpEntity = uriUtils.buildHeader(request); |  |  |  |         HttpEntity<String> httpEntity = uriUtils.buildHeader(request); | 
			
		
	
		
		
			
				
					
					|  |  |  |         ResponseEntity<JSONObject> responseBody = null; |  |  |  |         ResponseEntity<JSONObject> responseBody = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (request.getMethod().equals("POST")) { |  |  |  |         if (request.getMethod().equals("POST")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             responseBody = restTemplate.postForEntity(uri, httpEntity, JSONObject.class); |  |  |  |             responseBody = restTemplate.postForEntity(uri, httpEntity, JSONObject.class); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else if (request.getMethod().equals("GET")) { |  |  |  |         } else if (request.getMethod().equals("GET")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             uri = uri +"?"+ request.getQueryString(); |  |  |  |             uri = uri + "?" + request.getQueryString(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             responseBody = restTemplate.exchange(uri, HttpMethod.GET, httpEntity, JSONObject.class); |  |  |  |             responseBody = restTemplate.exchange(uri, HttpMethod.GET, httpEntity, JSONObject.class); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         JSONObject result = responseBody.getBody(); |  |  |  |         JSONObject result = responseBody.getBody(); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |