mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -225,16 +225,38 @@ class GrpcRepo {
|
||||
required int rpid,
|
||||
required CursorReq cursor,
|
||||
DetailListScene scene = DetailListScene.REPLY,
|
||||
required int page,
|
||||
}) async {
|
||||
return await _request(
|
||||
GrpcUrl.detailList,
|
||||
DetailListReq(
|
||||
oid: Int64(oid),
|
||||
type: Int64(type),
|
||||
root: Int64(root),
|
||||
rpid: Int64(rpid),
|
||||
cursor: cursor,
|
||||
scene: scene),
|
||||
oid: Int64(oid),
|
||||
type: Int64(type),
|
||||
root: Int64(root),
|
||||
rpid: Int64(rpid),
|
||||
// cursor: cursor,
|
||||
scene: Int64(scene.value),
|
||||
mode: Int64(cursor.mode.value),
|
||||
pagination: FeedPagination(
|
||||
offset: page == 1
|
||||
? null
|
||||
: jsonEncode(
|
||||
cursor.mode == Mode.MAIN_LIST_TIME
|
||||
? {
|
||||
// time
|
||||
"type": 3,
|
||||
"direction": 1,
|
||||
"Data": {"cursor": cursor.next.toInt()}
|
||||
}
|
||||
: {
|
||||
// hot
|
||||
"type": 1,
|
||||
"direction": 1,
|
||||
"data": {"pn": page}
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
DetailListReply.fromBuffer);
|
||||
}
|
||||
|
||||
|
||||
@@ -268,6 +268,7 @@ class ReplyHttp {
|
||||
required int rpid,
|
||||
required CursorReq cursor,
|
||||
required bool antiGoodsReply,
|
||||
required int page,
|
||||
}) async {
|
||||
dynamic res = await GrpcRepo.detailList(
|
||||
type: type,
|
||||
@@ -275,6 +276,7 @@ class ReplyHttp {
|
||||
root: root,
|
||||
rpid: rpid,
|
||||
cursor: cursor,
|
||||
page: page,
|
||||
);
|
||||
if (res['status']) {
|
||||
DetailListReply detailListReply = res['data'];
|
||||
|
||||
@@ -127,6 +127,7 @@ class VideoReplyReplyController extends ReplyController
|
||||
mode: mode.value,
|
||||
),
|
||||
antiGoodsReply: antiGoodsReply,
|
||||
page: currentPage,
|
||||
);
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user