phiz_2.42.1.1
Sean 2023-10-18 15:08:53 +08:00
parent 08a5a23fde
commit 31f68432f9
1 changed files with 2 additions and 15 deletions

View File

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