feat(后端): 联调修改7

master
rdpnr_puzhi 2025-08-13 11:28:32 +08:00
parent 05c62dedb3
commit e4fe376211
1 changed files with 2 additions and 2 deletions

View File

@ -22,11 +22,11 @@ public class TestController {
} }
@GetMapping("/stop") @GetMapping("/stop")
public String stop(@RequestParam("sourceFile") String sourceFile) { public boolean stop(@RequestParam("sourceFile") String sourceFile) {
// 测试停止 // 测试停止
System.out.println("停止做种..."); System.out.println("停止做种...");
boolean stopResult = BtTorrentUtils.stopSeeding(sourceFile); boolean stopResult = BtTorrentUtils.stopSeeding(sourceFile);
System.out.println("停止结果: " + (stopResult ? "成功" : "失败")); System.out.println("停止结果: " + (stopResult ? "成功" : "失败"));
return "success"; return stopResult;
} }
} }