mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: push bilibili://following/detail
Closes #576 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -70,7 +70,7 @@ class _ReplyMePageState extends State<ReplyMePage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
"${item.user?.nickname}${item.isMulti == 1 ? '等人' : ''} "
|
"${item.user?.nickname} ${item.isMulti == 1 ? '等人' : ''}"
|
||||||
"回复了我的${item.item?.business} ${item.isMulti == 1 ? ',共${item.counts}条' : ''}",
|
"回复了我的${item.item?.business} ${item.isMulti == 1 ? ',共${item.counts}条' : ''}",
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ class PiliScheme {
|
|||||||
return true;
|
return true;
|
||||||
} else if (path.startsWith("/msg_fold/")) {
|
} else if (path.startsWith("/msg_fold/")) {
|
||||||
// bilibili://comment/msg_fold/1/22222/33333/11111/?enterUri=bilibili://video/22222 //(aid)
|
// bilibili://comment/msg_fold/1/22222/33333/11111/?enterUri=bilibili://video/22222 //(aid)
|
||||||
// bilibili://comment/msg_fold/11/22222/33333/11111/?enterUri=bilibili://following/detail/44444 //(oid)
|
// bilibili://comment/msg_fold/11/22222/33333/11111/?enterUri=bilibili://following/detail/44444 (dynId)
|
||||||
List<String> pathSegments = uri.pathSegments;
|
List<String> pathSegments = uri.pathSegments;
|
||||||
int type = int.parse(pathSegments[1]); // business_id
|
int type = int.parse(pathSegments[1]); // business_id
|
||||||
int oid = int.parse(pathSegments[2]); // subject_id
|
int oid = int.parse(pathSegments[2]); // subject_id
|
||||||
@@ -320,9 +320,10 @@ class PiliScheme {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
case 'following':
|
case 'following':
|
||||||
// bilibili://following/detail/832703053858603029
|
// businessId == 17 => dynId == oid
|
||||||
|
// bilibili://following/detail/832703053858603029 (dynId)
|
||||||
// bilibili://following/detail/12345678?comment_root_id=654321\u0026comment_on=1
|
// bilibili://following/detail/12345678?comment_root_id=654321\u0026comment_on=1
|
||||||
if (path.startsWith("/detail/")) {
|
if (businessId == 17 && path.startsWith("/detail/")) {
|
||||||
final queryParameters = uri.queryParameters;
|
final queryParameters = uri.queryParameters;
|
||||||
final commentRootId = queryParameters['comment_root_id'];
|
final commentRootId = queryParameters['comment_root_id'];
|
||||||
if (commentRootId != null) {
|
if (commentRootId != null) {
|
||||||
@@ -365,8 +366,10 @@ class PiliScheme {
|
|||||||
bool hasMatch = await _onPushDynDetail(path, off);
|
bool hasMatch = await _onPushDynDetail(path, off);
|
||||||
return hasMatch;
|
return hasMatch;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
bool hasMatch = await _onPushDynDetail(path, off);
|
||||||
|
return hasMatch;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
case 'album':
|
case 'album':
|
||||||
String? rid = uriDigitRegExp.firstMatch(path)?.group(1);
|
String? rid = uriDigitRegExp.firstMatch(path)?.group(1);
|
||||||
if (rid != null) {
|
if (rid != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user