From a8054be82e48a8e6c876edf7e8f3d937ef0a3d9b Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sat, 10 May 2025 16:12:18 +0800 Subject: [PATCH] mod: handle readlist url Signed-off-by: bggRGjQaUbCoE --- lib/utils/app_scheme.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index 666ebe96..9f17da57 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -653,6 +653,17 @@ class PiliScheme { launchURL(); return false; case 'read': + if (path.contains('readlist')) { + String? id = RegExp(r'/rl(\d+)', caseSensitive: false) + .firstMatch(path) + ?.group(1); + if (id != null) { + Get.toNamed('/articleList', parameters: {'id': id}); + return true; + } + launchURL(); + return false; + } debugPrint('专栏'); String? id = RegExp(r'cv(\d+)', caseSensitive: false).firstMatch(path)?.group(1);