feat(后端): 联调修改7
parent
05c62dedb3
commit
e4fe376211
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue