mod: scheme 补充

This commit is contained in:
guozhigq
2024-06-19 23:39:19 +08:00
parent accaaa1142
commit 56c0635389

View File

@ -19,6 +19,7 @@ class PiliSchame {
/// 完整链接进入 b23.无效
appScheme.getLatestScheme().then((SchemeEntity? value) {
print('getLatestScheme value: $value');
if (value != null) {
_routePush(value);
}
@ -26,6 +27,8 @@ class PiliSchame {
/// 注册从外部打开的Scheme监听信息 #
appScheme.registerSchemeListener().listen((SchemeEntity? event) {
print('registerSchemeListener event: $event');
if (event != null) {
_routePush(event);
}
@ -92,6 +95,12 @@ class PiliSchame {
'id': 'cv$id',
'dynamicType': 'read'
});
} else if (host == 'pgc') {
if (path.contains('ep')) {
final String lastPathSegment = path.split('/').last;
RoutePush.bangumiPush(
null, int.parse(lastPathSegment.split('?').first));
}
}
}
if (scheme == 'https') {