diff --git a/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java b/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java index 2faa48d..efba003 100644 --- a/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java +++ b/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java @@ -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 responseEntity = restTemplate.exchange(url, HttpMethod.GET, null, Boolean.class); diff --git a/nex-be/src/main/java/com/unisinsight/project/service/impl/ImageServiceImpl.java b/nex-be/src/main/java/com/unisinsight/project/service/impl/ImageServiceImpl.java index a3b746d..81d0c64 100644 --- a/nex-be/src/main/java/com/unisinsight/project/service/impl/ImageServiceImpl.java +++ b/nex-be/src/main/java/com/unisinsight/project/service/impl/ImageServiceImpl.java @@ -93,7 +93,7 @@ public class ImageServiceImpl extends ServiceImpl 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 responseEntity = restTemplate.exchange(url, HttpMethod.GET, null, Boolean.class);