feat(后端): 联调修改8
parent
0d5fbd7b6d
commit
1c8325d05f
|
@ -161,7 +161,7 @@ public class FileChunkController {
|
|||
// 异步执行创建和做种操作
|
||||
CompletableFuture.runAsync(() -> {
|
||||
try {
|
||||
String url = btUrl + "/test/start?sourceFile=%s&torrentFile=%s";
|
||||
String url = btUrl + "/vdi/start?sourceFile=%s&torrentFile=%s";
|
||||
url = String.format(url, finalFilePath, finalFilePath + ".torrent");
|
||||
log.info("请求bt创建接口参数: {}", url);
|
||||
ResponseEntity<Boolean> responseEntity = restTemplate.exchange(url, HttpMethod.GET, null, Boolean.class);
|
||||
|
|
|
@ -93,7 +93,7 @@ public class ImageServiceImpl extends ServiceImpl<ImageMapper, Image>
|
|||
if (ObjectUtils.isNotEmpty(image)) {
|
||||
try {
|
||||
try {
|
||||
String url = btUrl + "/test/stop?sourceFile=%s";
|
||||
String url = btUrl + "/vdi/stop?sourceFile=%s";
|
||||
url = String.format(url, image.getStoragePath());
|
||||
log.info("请求bt停止接口参数: {}", url);
|
||||
ResponseEntity<Boolean> responseEntity = restTemplate.exchange(url, HttpMethod.GET, null, Boolean.class);
|
||||
|
|
Loading…
Reference in New Issue