Skip to content

Commit 02c4c3c

Browse files
committed
fix: ListGroupFilesByFolder
1 parent 9a0e5ac commit 02c4c3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/operation.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,6 @@ func (c *QQClient) ListGroupFilesByFolder(groupUin uint32, targetDirectory strin
818818
if err != nil {
819819
return files, folders, err
820820
}
821-
if res.List.IsEnd {
822-
break
823-
}
824821
for _, fe := range res.List.Items {
825822
if fe.FileInfo != nil {
826823
files = append(files, &entity.GroupFile{
@@ -850,6 +847,9 @@ func (c *QQClient) ListGroupFilesByFolder(groupUin uint32, targetDirectory strin
850847
}
851848
}
852849
startIndex += fileCount
850+
if res.List.IsEnd {
851+
break
852+
}
853853
}
854854
return files, folders, nil
855855
}

0 commit comments

Comments
 (0)