Commit 9e6b9a813eaff2e152908ca949840e5658394297
1 parent
21d28f26
录像下载路径优化
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/java/top/panll/assist/config/StartConfig.java
| ... | ... | @@ -93,7 +93,7 @@ public class StartConfig implements CommandLineRunner { |
| 93 | 93 | |
| 94 | 94 | private void writeAssistDownPage(File recordFile) { |
| 95 | 95 | try { |
| 96 | - File file = new File(recordFile.getAbsolutePath(), "download.html"); | |
| 96 | + File file = new File(recordFile.getParentFile().getAbsolutePath(), "download.html"); | |
| 97 | 97 | if (file.exists()) { |
| 98 | 98 | file.delete(); |
| 99 | 99 | } | ... | ... |
src/main/java/top/panll/assist/service/VideoFileService.java
| ... | ... | @@ -371,7 +371,7 @@ public class VideoFileService { |
| 371 | 371 | Path relativize = Paths.get(userSettings.getRecord()).getParent().relativize(Paths.get(result)); |
| 372 | 372 | mergeOrCutTaskInfo.setRecordFile(relativize.toString()); |
| 373 | 373 | if (remoteHost != null) { |
| 374 | - mergeOrCutTaskInfo.setDownloadFile(remoteHost + "/record/download.html?url=../" + relativize); | |
| 374 | + mergeOrCutTaskInfo.setDownloadFile(remoteHost + "/download.html?url=" + relativize); | |
| 375 | 375 | mergeOrCutTaskInfo.setPlayFile(remoteHost + "/" + relativize); |
| 376 | 376 | } |
| 377 | 377 | redisUtil.convertAndSend("topic_mergeorcut_end", mergeOrCutTaskInfo); | ... | ... |