mod: handle readlist url

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-10 16:12:18 +08:00
parent 3b6fd8019b
commit a8054be82e

View File

@@ -653,6 +653,17 @@ class PiliScheme {
launchURL(); launchURL();
return false; return false;
case 'read': 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('专栏'); debugPrint('专栏');
String? id = String? id =
RegExp(r'cv(\d+)', caseSensitive: false).firstMatch(path)?.group(1); RegExp(r'cv(\d+)', caseSensitive: false).firstMatch(path)?.group(1);