Windows/Linux WebView 兼容 & 同步支持远程上传 #5
Notifications
Due Date
No due date set.
Blocks
#6 Upstream source code synchronization
gongyun/app
Reference: gongyun/app#5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixed: Windows/Linux WebView 兼容
fixed: 改进 sync-core 网络错误信息
feat: 增强同步引擎网络错误诊断, 区分reqwest错误类型+附带URL和source链+修复空msg问题
服务端错误码映射+上传业务错误跳过重试 80+错误码中文映射,40006等业务错误不再盲目重试
errors.rs
- 新增 4 个 SyncError 变体:
- StoragePolicyDenied — 40006/40035/40057(存储策略不允许/不存在/已变更)
- UploadFailed — 40002/40011/40012/40013/40054(上传失败/会话过期/分片错误/同名上传中)
- FileNotFound — 40044/40077(文件/实体不存在)
- PermissionDenied — 40017/40018/40007/40008(封禁/未激活/组限制/需管理员)
api_client.rs
- 新增 server_code_desc() 映射 80+ 个服务端错误码到中文
- api_code_to_error() 将错误码分类为对应的 SyncError 变体。
- parse_response 使用新映射,日志显示如 存储策略不允许: 当前存储策略不允许 而非单纯
网络错误uploader.rs
- 上传重试逻辑中,业务错误(StoragePolicyDenied/UploadFailed/FileNotFound/PermissionDenied)直接失败不再重试
fixed: 上传失败后清理远端碎片
feat: 上传支持远程存储策略
fixed: 上传失败清理远端碎片时防止SSE事件误删本地文件
fixed: 远程存储上传添加Content-Range头
feat: 远程存储上传完成后回调服务端
fixed: 远程存储上传日志加task_id+文件名前缀
#6 Already merged