修复:图文视频视频下载 在改变图文视频配置(由下载图文视频改为不下载图文视频,但是下载图片时,对于重新下载的任务,会出现创建视频记录因为没又视频导致获取视频大小异常问题。

This commit is contained in:
jianzhichu
2025-12-06 13:12:01 +08:00
parent c60f7bdf57
commit 72497c5fae
8 changed files with 33 additions and 16 deletions
+2 -2
View File
@@ -226,7 +226,7 @@ namespace dy.net.service
// 不合成视频,直接返回成功
if (!mergeImg2Viedo)
{
Log.Debug("不合成视频,直接返回成功");
Log.Debug($"根据系统配置设置不下载图文视频-[{outputVideoPath}],{(downImage?"":"")},{(downMp3?"":"")}");
return true;
}
@@ -261,7 +261,7 @@ namespace dy.net.service
if (rawAudios.Length == 0)
{
rawAudios= new string[] { Path.Combine(AppContext.BaseDirectory,"mp3", "silent_10.mp3") };
Log.Debug("未检测到音频,使用默认静音音频-无声");
Log.Debug("版权原因无法下载音频,使用默认无声音频文件");
}
string resultPath = await ffmpegHelper.CreateVideoFromImagesAndAudioAsync(