@@ -89,7 +89,6 @@ func (y *Cloud189PC) RapidUploadFromTorrent(ctx context.Context, dstDir model.Ob
8989 sliceMd5Hex = strings .ToUpper (utils .GetMD5EncodeStr (strings .Join (upperSliceMD5s , "\n " )))
9090 }
9191
92-
9392 // 使用与 Web 端一致的三步秒传流程
9493 fullUrl := "https://upload.cloud.189.cn"
9594 if isFamily {
@@ -110,7 +109,6 @@ func (y *Cloud189PC) RapidUploadFromTorrent(ctx context.Context, dstDir model.Ob
110109 initParams .Set ("familyId" , y .FamilyID )
111110 }
112111
113-
114112 var uploadInfo InitMultiUploadResp
115113 _ , err = y .request (fullUrl + "/initMultiUpload" , "GET" , func (req * resty.Request ) {
116114 req .SetContext (ctx )
@@ -119,7 +117,6 @@ func (y *Cloud189PC) RapidUploadFromTorrent(ctx context.Context, dstDir model.Ob
119117 return nil , fmt .Errorf ("initMultiUpload 失败: %w" , err )
120118 }
121119
122-
123120 uploadFileId := uploadInfo .Data .UploadFileID
124121
125122 // Step 2: checkTransSecond(用 fileMd5 + sliceMd5 + uploadFileId 检查秒传)
@@ -129,7 +126,6 @@ func (y *Cloud189PC) RapidUploadFromTorrent(ctx context.Context, dstDir model.Ob
129126 "uploadFileId" : uploadFileId ,
130127 }
131128
132-
133129 var checkResp struct {
134130 Data struct {
135131 FileDataExists int `json:"fileDataExists"`
@@ -143,7 +139,6 @@ func (y *Cloud189PC) RapidUploadFromTorrent(ctx context.Context, dstDir model.Ob
143139 return nil , fmt .Errorf ("秒传检查失败: %w" , err )
144140 }
145141
146-
147142 if checkResp .Data .FileDataExists != 1 {
148143 return nil , fmt .Errorf ("秒传失败:云端不存在该文件(fileMD5=%s, sliceMD5=%s, size=%d)" , fileMD5Upper , sliceMd5Hex , fileSize )
149144 }
0 commit comments