mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: reply2reply request
This commit is contained in:
@@ -135,6 +135,7 @@ class GrpcRepo {
|
||||
int type = 1,
|
||||
required int oid,
|
||||
required int root,
|
||||
required int rpid,
|
||||
required CursorReq cursor,
|
||||
DetailListScene scene = DetailListScene.REPLY,
|
||||
}) async {
|
||||
@@ -143,6 +144,7 @@ class GrpcRepo {
|
||||
..oid = Int64(oid)
|
||||
..type = Int64(type)
|
||||
..root = Int64(root)
|
||||
..rpid = Int64(rpid)
|
||||
..cursor = cursor
|
||||
..scene = scene;
|
||||
final response = await GrpcClient.instance.replyClient
|
||||
|
||||
@@ -103,12 +103,14 @@ class ReplyHttp {
|
||||
int type = 1,
|
||||
required int oid,
|
||||
required int root,
|
||||
required int rpid,
|
||||
required CursorReq cursor,
|
||||
}) async {
|
||||
dynamic res = await GrpcRepo.detailList(
|
||||
type: type,
|
||||
oid: oid,
|
||||
root: root,
|
||||
rpid: rpid,
|
||||
cursor: cursor,
|
||||
);
|
||||
if (res['status']) {
|
||||
|
||||
@@ -18,7 +18,7 @@ class VideoReplyReplyController extends CommonController
|
||||
);
|
||||
final itemScrollCtr = ItemScrollController();
|
||||
bool hasRoot = false;
|
||||
dynamic id;
|
||||
int? id;
|
||||
// 视频aid 请求时使用的oid
|
||||
int? aid;
|
||||
// rpid 请求楼中楼回复
|
||||
@@ -30,7 +30,7 @@ class VideoReplyReplyController extends CommonController
|
||||
ReplyInfo? currentReplyItem;
|
||||
|
||||
CursorReply? cursor;
|
||||
Rx<Mode> mode = Mode.MAIN_LIST_HOT.obs;
|
||||
Rx<Mode> mode = Mode.MAIN_LIST_TIME.obs;
|
||||
RxInt count = (-1).obs;
|
||||
int? upMid;
|
||||
|
||||
@@ -101,7 +101,7 @@ class VideoReplyReplyController extends CommonController
|
||||
index = replies.root.replies
|
||||
.map((item) => item.id.toInt())
|
||||
.toList()
|
||||
.indexOf(id);
|
||||
.indexOf(id!);
|
||||
if (index != -1) {
|
||||
controller = AnimationController(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
@@ -151,6 +151,7 @@ class VideoReplyReplyController extends CommonController
|
||||
type: replyType.index,
|
||||
oid: aid!,
|
||||
root: int.parse(rpid!),
|
||||
rpid: id ?? 0,
|
||||
cursor: CursorReq(
|
||||
next: cursor?.next,
|
||||
mode: mode.value,
|
||||
|
||||
Reference in New Issue
Block a user