fix(http): stream live sns media and clarify docs

This commit is contained in:
xuncha
2026-04-03 20:07:11 +08:00
parent 8c4f42bab1
commit 67642cebfd
3 changed files with 39 additions and 7 deletions

View File

@@ -1240,7 +1240,7 @@ class SnsService {
return { success: false, error: result.error }
}
async downloadImage(url: string, key?: string | number): Promise<{ success: boolean; data?: Buffer; contentType?: string; error?: string }> {
async downloadImage(url: string, key?: string | number): Promise<{ success: boolean; data?: Buffer; contentType?: string; cachePath?: string; error?: string }> {
return this.fetchAndDecryptImage(url, key)
}