Skip to content

Commit aca9fb8

Browse files
committed
细节优化
1 parent 7e444b7 commit aca9fb8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/upload/resume.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class Resume extends Base {
8383
await Promise.all(uploadChunks)
8484
mkFileResponse = await this.mkFileReq()
8585
} catch (error) {
86-
// uploadId 无效,上传参数有误(多由于本地存储信息的 uploadId 失效
86+
// uploadId 无效,上传参数有误(多由于本地存储信息的 uploadId 失效
8787
if (error instanceof QiniuRequestError && (error.code === 612 || error.code === 400)) {
8888
utils.removeLocalFileInfo(localKey, this.logger)
8989
}
@@ -121,6 +121,11 @@ export default class Resume extends Base {
121121
return
122122
}
123123

124+
// 有缓存但是没有使用则调整标记
125+
if (info) {
126+
info.fromCache = false
127+
}
128+
124129
const onProgress = (data: Progress) => {
125130
this.updateChunkProgress(data.loaded, index)
126131
}

0 commit comments

Comments
 (0)