mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -49,8 +49,8 @@ class LiveController extends CommonListController {
|
|||||||
@override
|
@override
|
||||||
bool customHandleResponse(bool isRefresh, Success response) {
|
bool customHandleResponse(bool isRefresh, Success response) {
|
||||||
if (isRefresh) {
|
if (isRefresh) {
|
||||||
if (areaIndex.value == 0) {
|
final res = response.response;
|
||||||
LiveIndexData data = response.response;
|
if (res case LiveIndexData data) {
|
||||||
if (data.hasMore == 0) {
|
if (data.hasMore == 0) {
|
||||||
isEnd = true;
|
isEnd = true;
|
||||||
}
|
}
|
||||||
@@ -58,8 +58,7 @@ class LiveController extends CommonListController {
|
|||||||
first: data.followItem,
|
first: data.followItem,
|
||||||
second: data.areaItem,
|
second: data.areaItem,
|
||||||
);
|
);
|
||||||
} else {
|
} else if (res case LiveSecondData data) {
|
||||||
LiveSecondData data = response.response;
|
|
||||||
count = data.count;
|
count = data.count;
|
||||||
newTags = data.newTags;
|
newTags = data.newTags;
|
||||||
if (sortType != null) {
|
if (sortType != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user