|
@@ -19,10 +19,10 @@ import org.springframework.web.client.RestTemplate;
|
|
public class FdkkV4Service {
|
|
public class FdkkV4Service {
|
|
private static final Logger log = LoggerFactory.getLogger(FdkkV4Service.class);
|
|
private static final Logger log = LoggerFactory.getLogger(FdkkV4Service.class);
|
|
|
|
|
|
- private final String UPGRADE_TO_V4="/api/user/scene?num=%s";
|
|
|
|
|
|
+ private final String UPGRADE_TO_V4="api/user/scene?num=%s";
|
|
|
|
|
|
- @Value("${4dkk.v4Service.host}")
|
|
|
|
- private String v4Host;
|
|
|
|
|
|
+ @Value("${main.url}")
|
|
|
|
+ private String mainUrl;
|
|
|
|
|
|
private RestTemplate restTemplate = new RestTemplate();
|
|
private RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
|
@@ -43,7 +43,7 @@ public class FdkkV4Service {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- String url = v4Host + String.format(UPGRADE_TO_V4,num);
|
|
|
|
|
|
+ String url = mainUrl + String.format(UPGRADE_TO_V4,num);
|
|
log.info("v3场景升级v4,url:{}",url);
|
|
log.info("v3场景升级v4,url:{}",url);
|
|
ResponseEntity<Result> responseEntity = restTemplate.getForEntity(url, Result.class);
|
|
ResponseEntity<Result> responseEntity = restTemplate.getForEntity(url, Result.class);
|
|
log.info("v3场景升级v4,url:{},结果,{}",url, JSONObject.toJSONString(responseEntity.getBody()));
|
|
log.info("v3场景升级v4,url:{},结果,{}",url, JSONObject.toJSONString(responseEntity.getBody()));
|