userinfo问题
parent
0cc86db64d
commit
1ba47e245c
|
@ -40,13 +40,9 @@
|
|||
NSLog(@"getUserInfoWithAppletInfo");
|
||||
__block NSDictionary *userInfo;
|
||||
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) {
|
||||
userInfo = result;
|
||||
dispatch_group_leave(group);
|
||||
userInfo = result;
|
||||
}];
|
||||
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
|
||||
return userInfo;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue