fix: highlightVideoUrl存完整URL;添加app.base-url配置
This commit is contained in:
parent
677227441f
commit
66c21ae449
@ -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 -> {
|
||||||
|
|||||||
@ -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}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user