From 179eeacc95f8f530a22ad892884e84b95d2d09b0 Mon Sep 17 00:00:00 2001 From: wangzhaoyao Date: Tue, 3 Jan 2023 23:19:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=8A=A0=E8=BD=BD=E7=BD=91=E7=BB=9C=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOPAppletDelegate.m | 9 ++++++++- ios/mop.podspec | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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