mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -78,26 +78,6 @@ class FavHttp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<LoadingState<SubDetailData>> favResourceList({
|
|
||||||
required int id,
|
|
||||||
required int pn,
|
|
||||||
required int ps,
|
|
||||||
}) async {
|
|
||||||
var res = await Request().get(
|
|
||||||
Api.favResourceList,
|
|
||||||
queryParameters: {
|
|
||||||
'media_id': id,
|
|
||||||
'ps': ps,
|
|
||||||
'pn': pn,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
if (res.data['code'] == 0) {
|
|
||||||
return Success(SubDetailData.fromJson(res.data['data']));
|
|
||||||
} else {
|
|
||||||
return Error(res.data['message']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 取消订阅
|
// 取消订阅
|
||||||
static Future cancelSub({required int id, required int type}) async {
|
static Future cancelSub({required int id, required int type}) async {
|
||||||
var res = type == 11
|
var res = type == 11
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class DynamicsDataModel {
|
|||||||
}
|
}
|
||||||
// filtered all
|
// filtered all
|
||||||
if (items!.isEmpty) {
|
if (items!.isEmpty) {
|
||||||
loadNext = true;
|
loadNext = hasMore;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user