From 1ba47e245cea7c4b7e68320f17e8e118e9f66082 Mon Sep 17 00:00:00 2001 From: kangxuyao Date: Wed, 20 May 2020 16:20:50 +0800 Subject: [PATCH] =?UTF-8?q?userinfo=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOPAppletDelegate.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 614dbd7..85b3469 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -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; }