From 1a10fe3605f399a3bf7ee078e4d822c54cb798cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=81=A5=E8=BE=89?= <27-hujianhui@users.noreply.gitlab.gitlab.finogeeks.club> Date: Tue, 17 May 2022 17:58:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOPAppletDelegate.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 00322f6..7ef44c8 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -133,7 +133,15 @@ static NSString *scheme = @"fatae55433be2f62915";//App对应的scheme [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; } +- (void)getPhoneNumberWithAppletInfo:(FATAppletInfo *)appletInfo bindGetPhoneNumber:(void (^)(NSDictionary *))bindGetPhoneNumber { + NSDictionary *params = @{@"name":@"getPhoneNumber"}; + FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; + [channel invokeMethod:@"extensionApi:getPhoneNumber" arguments:params result:^(id _Nullable result) { + !bindGetPhoneNumber?: bindGetPhoneNumber(result); + }]; + +} @end @implementation NSString (FATEncode)