🐛 修复含视频分享图生成异常

fix #54
This commit is contained in:
BTMuli
2023-10-25 18:37:57 +08:00
parent 73bf525d42
commit d0c0f40638
2 changed files with 11 additions and 10 deletions

View File

@@ -65,12 +65,8 @@ function getVodTime(duration: number): string {
if (hours > 0) {
result += `${hours.toString().padStart(2, "0")}:`;
}
if (minutes > 0) {
result += `${minutes.toString().padStart(2, "0")}:`;
}
if (seconds > 0) {
result += `${seconds.toString().padStart(2, "0")}`;
}
result += `${minutes.toString().padStart(2, "0")}:`;
result += `${seconds.toString().padStart(2, "0")}`;
return result;
}