修改微信登录

master
胡健辉 2022-05-17 17:58:19 +08:00
parent 0dd335b356
commit 1a10fe3605
1 changed files with 8 additions and 0 deletions

View File

@ -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)