已知问题优化

This commit is contained in:
jianzhichu
2026-03-13 19:12:07 +08:00
parent e82e3a9140
commit dbf98c781d
16 changed files with 372 additions and 595 deletions
+19
View File
@@ -223,6 +223,25 @@ namespace dy.net.service
}
}
}
public async Task<bool> UpdateImageVideoSavePath()
{
var exist = await sqlSugarClient.Queryable<DouyinVideo>().Where(x => x.IsMergeVideo == 1 && x.VideoSavePath.EndsWith("-poster.jpg")).AnyAsync();
if (exist)
{
// 执行更新操作
var updateCount = sqlSugarClient.Updateable<DouyinVideo>()
.SetColumns(it => new DouyinVideo
{
VideoSavePath = SqlFunc.Replace(it.VideoSavePath, "-poster.jpg", ".mp4")
})
.Where(it => it.IsMergeVideo == 1 && it.VideoSavePath.EndsWith("-poster.jpg"))
.ExecuteCommand();
if (updateCount > 0)
Serilog.Log.Debug($"更新了{updateCount}条图文视频存储路径,修复图文视频无法在页面播放的问题");
}
return true;
}
#region
///// <summary>