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

pull/7754/head
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
1 changed files with 1 additions and 1 deletions

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++