mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: handle readlist url
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user