diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 5c37051..5d5a66c 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -57,8 +57,6 @@ } - (BOOL)appletInfo:(FATAppletInfo *)appletInfo didClickMoreBtnAtPath:(NSString *)path { -// NSLog(@"didClickMoreBtnAtPath:%@,appletInfo=%@",path,appletInfo); -// return NO; __block BOOL flag; FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; NSLog(@"appletInfo:didClickMoreBtnAtPath,appId=%@,path=%@,channel=%@",appletInfo.appId,path,channel); @@ -75,27 +73,16 @@ - (NSArray> *)customMenusInApplet:(FATAppletInfo *)appletInfo atPath:(NSString *)path { NSLog(@"customMenusInApplet:%@,appletInfo=%@",path,appletInfo); - -// NSDictionary *item1 = @{@"menuId": @"shareToChatPicId", @"title": @"Share to friends", @"image": @"miniChat", @"darkImage": @"miniChat", @"type": @"common"}; -// NSDictionary *item2 = @{@"menuId": @"shareToOutsidePicId", @"title": @"Share to others", @"image": @"miniSend", @"darkImage": @"miniSend", @"type": @"common"}; -// NSDictionary *item3 = @{@"menuId": @"shareToMomentPicId", @"title": @"Share to Moment", @"image": @"miniMoments", @"darkImage": @"miniMoments", @"type": @"common"}; -// NSDictionary *item4 = @{@"menuId": @"shareQrcodePicId", @"title": @"Phiz code", @"image": @"qrCode", @"darkImage": @"qrCode", @"type": @"common"}; - __block NSArray *list; FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; [channel invokeMethod:@"extensionApi:getCustomMenus" arguments:@{@"appId": appletInfo.appId} result:^(id _Nullable result) { -// CFRunLoopStop(CFRunLoopGetMain()); + CFRunLoopStop(CFRunLoopGetMain()); if ([result isKindOfClass:[NSArray class]]) { list = result; - NSLog(@"customMenusInApplet2222:list=%@",list); - } }]; -// CFRunLoopRun(); - -// NSArray *> *list = @[item1, item2, item3,item4]; - + CFRunLoopRun(); NSLog(@"customMenusInApplet:%@,list=%@",path,list); NSMutableArray *models = [NSMutableArray array];