diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index d36e9c0..8947600 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -74,7 +74,14 @@ MopCustomMenuModel *model = [[MopCustomMenuModel alloc] init]; model.menuId = data[@"menuId"]; model.menuTitle = data[@"title"]; - model.menuIconImage = [UIImage imageNamed:data[@"image"]]; + NSString *imageUrl = data[@"image"]; + if ([imageUrl hasPrefix:@"http"]) { + // 需要异步加载,待优化! + NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:imageUrl]]; + model.menuIconImage = [UIImage imageWithData:data]; + } else { + model.menuIconImage = [UIImage imageNamed:imageUrl]; + } NSString *typeString = data[@"type"]; if (typeString) { FATAppletMenuStyle style = [typeString isEqualToString:@"onMiniProgram"] ? FATAppletMenuStyleOnMiniProgram : FATAppletMenuStyleCommon; diff --git a/ios/mop.podspec b/ios/mop.podspec index baa3b93..b6bbd2a 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.39.0-alpha20221222v09' - s.dependency 'FinAppletExt' , '2.39.0-alpha20221222v09' + s.dependency 'FinApplet' , '2.39.2-alpha20230103v04' + s.dependency 'FinAppletExt' , '2.39.2-alpha20230103v04' end