修复bug,针对部分没有MD5名字的视频也能支持导出

This commit is contained in:
Nanin
2026-08-08 19:41:14 +08:00
parent f2c58f39b0
commit 666d8896ee
12 changed files with 107 additions and 13 deletions
+8 -1
View File
@@ -102,6 +102,7 @@ export type ParsedContent =
md5?: string
newMd5?: string
rawMd5?: string
byteLength?: number
duration?: number
width?: number
height?: number
@@ -278,7 +279,13 @@ declare global {
}>
getVideo: (
hashes: string[],
options?: { createTime?: number; duration?: number; width?: number; height?: number }
options?: {
createTime?: number
byteLength?: number
duration?: number
width?: number
height?: number
}
) => Promise<{ success: boolean; url?: string; poster?: string; error?: string }>
getSticker: (
cdnUrl?: string,