fix: highlightVideoUrl存完整URL;添加app.base-url配置

This commit is contained in:
MaDaLei 2026-04-17 20:21:53 +08:00
parent 677227441f
commit 66c21ae449
2 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,8 @@ public class ReportHighlightVideoService {
Path finalPath = outDir.resolve(filename); Path finalPath = outDir.resolve(filename);
Files.copy(sourceToSave, finalPath, StandardCopyOption.REPLACE_EXISTING); Files.copy(sourceToSave, finalPath, StandardCopyOption.REPLACE_EXISTING);
String url = "/api/upload/image/" + datePath + "/" + filename; // 用完整 URL包含 https://api.s-good.com与前端 imgUrl() 逻辑一致
String url = "https://api.s-good.com/api/upload/image/" + datePath + "/" + filename;
synchronized (lockFor(reportId)) { synchronized (lockFor(reportId)) {
reportMapper.findByIdAndDeletedFalse(reportId).ifPresent(r -> { reportMapper.findByIdAndDeletedFalse(reportId).ifPresent(r -> {

View File

@ -46,6 +46,7 @@ logging:
# 服务回顾短片:本地 ffmpeg 拼接(可换为云端生成式视频 API # 服务回顾短片:本地 ffmpeg 拼接(可换为云端生成式视频 API
app: app:
base-url: ${APP_BASE_URL:https://api.s-good.com}
highlight-video: highlight-video:
ffmpeg-binary: ${HIGHLIGHT_FFMPEG:ffmpeg} ffmpeg-binary: ${HIGHLIGHT_FFMPEG:ffmpeg}