From 63881db23a1b21bd1e411b9a9563f6d53117d1fe Mon Sep 17 00:00:00 2001 From: hujianhui Date: Mon, 10 Jan 2022 17:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/MopPlugin.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 87d8074..278ceec 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -99,11 +99,14 @@ static MopPlugin *_instance; - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { - FlutterMethodChannel *channel = [[MopPlugin instance] shareMethodChannel]; - [channel invokeMethod:@"shareApi:openURL" arguments:@{@"url":url.absoluteString} result:^(id _Nullable result) { + NSString *string = url.absoluteString; + if ([string containsString:@"finclipWebview/url="]) { + FlutterMethodChannel *channel = [[MopPlugin instance] shareMethodChannel]; + [channel invokeMethod:@"shareApi:openURL" arguments:@{@"url":string} result:^(id _Nullable result) { - }]; -// + }]; + return YES; + } if (![FATClient sharedClient].inited) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{