Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-25 12:21:16 +08:00
parent b43840b636
commit e9dc154642
13 changed files with 423 additions and 408 deletions

View File

@@ -125,11 +125,11 @@ abstract final class PiliScheme {
int? rpid = int.tryParse(queryParameters['comment_root_id']!);
if (oid != null && rpid != null) {
VideoReplyReplyPanel.toReply(
int.parse(oid),
rpid,
queryParameters['comment_secondary_id'],
1,
uri.replace(query: ''),
oid: int.parse(oid),
rootId: rpid,
rpIdStr: queryParameters['comment_secondary_id'],
type: 1,
uri: uri.replace(query: ''),
);
return true;
}
@@ -225,11 +225,12 @@ abstract final class PiliScheme {
// int.parse(queryParameters['extraIntentId'] ?? '0');
final enterUri = queryParameters['enterUri'];
VideoReplyReplyPanel.toReply(
oid,
rootId,
queryParameters['anchor'], // source_id
type,
enterUri != null
oid: oid,
rootId: rootId,
rpIdStr:
queryParameters['anchor'] ?? pathSegments[3], // source_id
type: type,
uri: enterUri != null
? Uri.parse(enterUri)
: const [11, 16, 17].contains(type)
? Uri(
@@ -270,11 +271,11 @@ abstract final class PiliScheme {
int? rpid = int.tryParse(commentRootId);
if (dynId != null && rpid != null) {
VideoReplyReplyPanel.toReply(
oid ?? int.parse(dynId),
rpid,
queryParameters['comment_secondary_id'],
businessId ?? 17,
uri.replace(query: ''),
oid: oid ?? int.parse(dynId),
rootId: rpid,
rpIdStr: queryParameters['comment_secondary_id'],
type: businessId ?? 17,
uri: uri.replace(query: ''),
);
return true;
}
@@ -647,11 +648,11 @@ abstract final class PiliScheme {
final part = queryParameters['p'];
if (rootIdStr != null) {
VideoReplyReplyPanel.toReply(
res.av ?? IdUtils.bv2av(res.bv!),
int.parse(rootIdStr),
queryParameters['comment_secondary_id'],
1,
uri.replace(query: part != null ? 'p=$part' : ''),
oid: res.av ?? IdUtils.bv2av(res.bv!),
rootId: int.parse(rootIdStr),
rpIdStr: queryParameters['comment_secondary_id'],
type: 1,
uri: uri.replace(query: part != null ? 'p=$part' : ''),
);
return true;
}
@@ -748,11 +749,11 @@ abstract final class PiliScheme {
final pageType = queryParameters['pageType'];
if (oid != null && root != null && pageType != null) {
VideoReplyReplyPanel.toReply(
int.parse(oid),
int.parse(root),
queryParameters['comment_secondary_id'],
int.parse(pageType),
Uri(scheme: 'bilibili', host: 'video', path: oid),
oid: int.parse(oid),
rootId: int.parse(root),
rpIdStr: queryParameters['comment_secondary_id'],
type: int.parse(pageType),
uri: Uri(scheme: 'bilibili', host: 'video', path: oid),
);
return true;
}