From c3d729fc77da1530ffacf8eae0275048ae7ea609 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 2 Mar 2025 00:39:20 +0800 Subject: [PATCH] mod: scheme: jump to reply Closes #362 Signed-off-by: bggRGjQaUbCoE --- lib/utils/app_scheme.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index fae32d25..3864a7bb 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -87,6 +87,7 @@ class PiliScheme { return false; case 'video': // bilibili://video/12345678?dm_progress=123000&cid=12345678&dmid=12345678 + // bilibili://video/{aid}/?comment_root_id=***&comment_secondary_id=*** final queryParameters = uri.queryParameters; if (queryParameters['comment_root_id'] != null) { // to check @@ -117,6 +118,10 @@ class PiliScheme { source: 'routePush', replyType: ReplyType.video, firstFloor: null, + id: queryParameters['comment_secondary_id'] != null + ? int.tryParse( + queryParameters['comment_secondary_id']!) + : null, ), ), );