mod: scheme 补充
This commit is contained in:
@ -19,6 +19,7 @@ class PiliSchame {
|
|||||||
|
|
||||||
/// 完整链接进入 b23.无效
|
/// 完整链接进入 b23.无效
|
||||||
appScheme.getLatestScheme().then((SchemeEntity? value) {
|
appScheme.getLatestScheme().then((SchemeEntity? value) {
|
||||||
|
print('getLatestScheme value: $value');
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
_routePush(value);
|
_routePush(value);
|
||||||
}
|
}
|
||||||
@ -26,6 +27,8 @@ class PiliSchame {
|
|||||||
|
|
||||||
/// 注册从外部打开的Scheme监听信息 #
|
/// 注册从外部打开的Scheme监听信息 #
|
||||||
appScheme.registerSchemeListener().listen((SchemeEntity? event) {
|
appScheme.registerSchemeListener().listen((SchemeEntity? event) {
|
||||||
|
print('registerSchemeListener event: $event');
|
||||||
|
|
||||||
if (event != null) {
|
if (event != null) {
|
||||||
_routePush(event);
|
_routePush(event);
|
||||||
}
|
}
|
||||||
@ -92,6 +95,12 @@ class PiliSchame {
|
|||||||
'id': 'cv$id',
|
'id': 'cv$id',
|
||||||
'dynamicType': 'read'
|
'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') {
|
if (scheme == 'https') {
|
||||||
|
|||||||
Reference in New Issue
Block a user