fix(115): fix offline download (#7845 close #7794)

* feat(115): use multi url for list files & change download url api

* fix(115): fix offline download. (close #7794)
This commit is contained in:
Shelton Zhu
2025-01-27 20:20:55 +08:00
committed by GitHub
parent 5eff8cc7bf
commit 267120a8c8
5 changed files with 19 additions and 62 deletions

View File

@ -241,7 +241,7 @@ func (d *Pan115) OfflineList(ctx context.Context) ([]*driver115.OfflineTask, err
}
func (d *Pan115) OfflineDownload(ctx context.Context, uris []string, dstDir model.Obj) ([]string, error) {
return d.client.AddOfflineTaskURIs(uris, dstDir.GetID())
return d.client.AddOfflineTaskURIs(uris, dstDir.GetID(), driver115.WithAppVer(appVer))
}
func (d *Pan115) DeleteOfflineTasks(ctx context.Context, hashes []string, deleteFiles bool) error {