userinfo问题
parent
0cc86db64d
commit
1ba47e245c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue