🐛 Fix(custom): fix the s3 download issue

This commit is contained in:
Kuingsmile
2026-02-02 11:21:26 +08:00
parent b31b2df675
commit 859111eaa4
4 changed files with 7 additions and 2 deletions
+2
View File
@@ -10,3 +10,5 @@
- 修复了Typora对接的问题 - 修复了Typora对接的问题
- 修复了部分情况下点击相册页面排序按钮无响应的问题 - 修复了部分情况下点击相册页面排序按钮无响应的问题
- 修复了云端s3下载失败的问题
- 修复了云端页面部分UI字样错误的问题
+2
View File
@@ -10,3 +10,5 @@
- Fixed issues with Typora integration - Fixed issues with Typora integration
- Fixed unresponsive sorting buttons on the album page in certain cases - Fixed unresponsive sorting buttons on the album page in certain cases
- Fixed S3 download failures on the cloud page
- Fixed some UI text errors on the cloud page
+2 -1
View File
@@ -849,10 +849,11 @@ class S3plistApi {
expires: 36000, expires: 36000,
customUrl, customUrl,
}) })
const cleanURL = decodeURIComponent(preSignedUrl)
promises.push( promises.push(
() => () =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
NewDownloader(instance, preSignedUrl, id, savedFilePath, this.logger, this.proxy).then((res: boolean) => { NewDownloader(instance, cleanURL, id, savedFilePath, this.logger, this.proxy).then((res: boolean) => {
if (res) { if (res) {
resolve(res) resolve(res)
} else { } else {
+1 -1
View File
@@ -1023,7 +1023,7 @@
<span>{{ item.finishTime }}</span> <span>{{ item.finishTime }}</span>
<span class="text-xs font-semibold text-success"> <span class="text-xs font-semibold text-success">
{{ {{
activeUpLoadTab === 'finished' activeDownLoadTab === 'finished'
? t('pages.manage.bucket.success') ? t('pages.manage.bucket.success')
: t('pages.manage.bucket.failed') : t('pages.manage.bucket.failed')
}} }}