feat: 服务端 promotion 视频自动转码;首页宣传册预览与 mp4 配置

Made-with: Cursor
This commit is contained in:
whm
2026-03-23 16:12:43 +08:00
parent d37e9a3663
commit ea90052e7e
15 changed files with 965 additions and 279 deletions

View File

@@ -225,5 +225,9 @@ func main() {
if port == "" {
port = "8080"
}
// 启动后扫描 uploads 下各站点 promotion 中遗留的 .mov 并补转码(与上传后异步转码逻辑一致)
go handlers.SweepPromotionTranscodeOnStartup()
r.Run(":" + port)
}