can not get most reply2reply on none detailed page
This commit is contained in:
bggRGjQaUbCoE
2024-09-16 14:19:16 +08:00
parent 6db99c11bc
commit 31000389ea
7 changed files with 20 additions and 25 deletions

View File

@@ -129,7 +129,7 @@ class Api {
// 评论列表
// https://api.bilibili.com/x/v2/reply/main?csrf=6e22efc1a47225ea25f901f922b5cfdd&mode=3&oid=254175381&pagination_str=%7B%22offset%22:%22%22%7D&plat=1&seek_rpid=0&type=11
static const String replyList = '/x/v2/reply/main';
static const String replyList = '/x/v2/reply';
// 楼中楼
static const String replyReplyList = '/x/v2/reply/reply';

View File

@@ -13,9 +13,9 @@ import 'init.dart';
class ReplyHttp {
static Future<LoadingState> replyList({
required int oid,
required String nextOffset,
required int type,
int sort = 1,
required int page,
}) async {
Options? options = GStorage.userInfo.get('userInfoCache') == null
? Options(
@@ -26,8 +26,9 @@ class ReplyHttp {
data: {
'oid': oid,
'type': type,
'pagination_str': '{"offset":"${nextOffset.replaceAll('"', '\\"')}"}',
'mode': sort + 2, //2:按时间排序3按热度排序
'sort': sort,
'pn': page,
'ps': 20,
},
options: options,
);