|
@@ -46,6 +46,10 @@ public class FilmOrderServiceImpl extends ServiceImpl<FilmOrderMapper, FilmOrder
|
|
|
private String appKey ;
|
|
|
@Value("${film.appSecret}")
|
|
|
private String appSecret ;
|
|
|
+ @Value("${film.v1Url}")
|
|
|
+ private String v1Url ;
|
|
|
+ @Value("${film.v2Url}")
|
|
|
+ private String v2Url ;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -72,9 +76,9 @@ public class FilmOrderServiceImpl extends ServiceImpl<FilmOrderMapper, FilmOrder
|
|
|
try {
|
|
|
HttpPost post = null;
|
|
|
if ("api/automation/orderHandle".equals(filmDTO.getUrl())) {
|
|
|
- post = new HttpPost("http://movieapi-test.taototo.cn/"+filmDTO.getUrl());
|
|
|
+ post = new HttpPost(v1Url+filmDTO.getUrl());
|
|
|
}else{
|
|
|
- post = new HttpPost("http://movieapi2-test.taototo.cn/"+filmDTO.getUrl());
|
|
|
+ post = new HttpPost(v2Url+filmDTO.getUrl());
|
|
|
}
|
|
|
post.setHeader("Content-Type","application/x-www-form-urlencoded");
|
|
|
Map<String, Object> sortMap = new TreeMap<String, Object>();
|