userinfo问题

master
kangxuyao 2020-05-20 16:20:50 +08:00
parent 0cc86db64d
commit 1ba47e245c
1 changed files with 1 additions and 5 deletions

View File

@ -40,13 +40,9 @@
NSLog(@"getUserInfoWithAppletInfo"); NSLog(@"getUserInfoWithAppletInfo");
__block NSDictionary *userInfo; __block NSDictionary *userInfo;
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
dispatch_group_t group = dispatch_group_create();
dispatch_group_enter(group);
[channel invokeMethod:@"extensionApi:getUserInfo" arguments:nil result:^(id _Nullable result) { [channel invokeMethod:@"extensionApi:getUserInfo" arguments:nil result:^(id _Nullable result) {
userInfo = result; userInfo = result;
dispatch_group_leave(group);
}]; }];
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
return userInfo; return userInfo;
} }