mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: query data
fix: webdav backup Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -15,15 +15,14 @@ class SysMsgController extends CommonController {
|
||||
}
|
||||
|
||||
@override
|
||||
List? handleListResponse(List currentList, List dataList) {
|
||||
void handleListResponse(List dataList) {
|
||||
if (cursor == -1) {
|
||||
msgSysUpdateCursor(dataList.firstOrNull?.cursor);
|
||||
msgSysUpdateCursor(dataList.first?.cursor);
|
||||
}
|
||||
cursor = dataList.lastOrNull?.cursor ?? -1;
|
||||
cursor = dataList.last?.cursor ?? -1;
|
||||
if (isEnd.not && dataList.length + 1 < pageSize) {
|
||||
isEnd = true;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Future msgSysUpdateCursor(int? cursor) async {
|
||||
|
||||
Reference in New Issue
Block a user