diff --git a/Sources/AliyunpanSDK/HTTPRequest/Download/AliyunpanDownloader.swift b/Sources/AliyunpanSDK/HTTPRequest/Download/AliyunpanDownloader.swift index dc741d1..fd9ce9e 100644 --- a/Sources/AliyunpanSDK/HTTPRequest/Download/AliyunpanDownloader.swift +++ b/Sources/AliyunpanSDK/HTTPRequest/Download/AliyunpanDownloader.swift @@ -54,8 +54,8 @@ public class AliyunpanDownloader: NSObject { guard let self else { return } - let offset = currentWritedSize - lastWritedSize - lastWritedSize = currentWritedSize + let offset = self.currentWritedSize - self.lastWritedSize + self.lastWritedSize = self.currentWritedSize self.delegates.compactMap { $0.value as? AliyunpanDownloadDelegate } .forEach { delegate in DispatchQueue.main.async { [weak self] in