fix(139): update familyGetFiles pagination logic (#7748 close #7711)

This commit is contained in:
MadDogOwner 2024-12-30 22:55:47 +08:00 committed by GitHub
parent 6745dcc139
commit 7fd4ac7851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,7 +252,7 @@ func (d *Yun139) familyGetFiles(catalogID string) ([]model.Obj, error) {
}
files = append(files, &f)
}
if 100*pageNum > resp.Data.TotalCount {
if resp.Data.TotalCount == 0 {
break
}
pageNum++