From 75f069ca6942dc414868468051ce35160067d239 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Fri, 18 Oct 2024 00:54:33 +0800 Subject: [PATCH] opt: following host --- lib/utils/app_scheme.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index a8ad1aa0..8597bf25 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -286,6 +286,19 @@ class PiliSchame { null, int.parse(lastPathSegment.split('?').first)); } break; + case 'following': + if (path.startsWith('/detail')) { + var opusId = path.split('/').last; + Get.toNamed( + '/webview', + parameters: { + 'url': 'https://m.bilibili.com/opus/$opusId', + 'type': 'url', + 'pageTitle': '' + }, + ); + } + break; default: SmartDialog.showToast('未匹配地址,请联系开发者'); Clipboard.setData(ClipboardData(text: value.toJson().toString()));