From deb6abf1ab9de7e8d9796d857184673b9b30e520 Mon Sep 17 00:00:00 2001 From: jizelin Date: Fri, 23 Dec 2022 17:20:25 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=AE=9E=E7=8E=B0copyFileAsFinFil?= =?UTF-8?q?e=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/MopPlugin.m | 8 ++++++++ ios/mop.podspec | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 29e640e..dc760ea 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -76,6 +76,14 @@ static MopPlugin *_instance; dict[@"path"] = [[FATClient sharedClient] fat_absolutePathWithPath:path]; result(dict); } + else if ([@"copyFileAsFinFile" isEqualToString:call.method]) { + NSString *appId = call.arguments[@"appId"]; + NSString *path = call.arguments[@"path"]; + NSString *fileName = [path componentsSeparatedByString:@"/"].lastObject; + NSMutableDictionary *dict = [NSMutableDictionary dictionary]; + dict[@"path"] = [[FATClient sharedClient] saveFile:[NSData dataWithContentsOfFile:path] fileName:fileName]; + result(dict); + } else if ([@"getPhoneNumberResult" isEqualToString:call.method]) { if ([MOPAppletDelegate instance].bindGetPhoneNumbers) { NSDictionary *dic = [[NSDictionary alloc] initWithDictionary:call.arguments]; diff --git a/ios/mop.podspec b/ios/mop.podspec index 2338ecb..fc53cb3 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.38.11' - s.dependency 'FinAppletExt' , '2.38.11' + s.dependency 'FinApplet' , '2.39.0-alpha20221223v06' + s.dependency 'FinAppletExt' , '2.39.0-alpha20221223v06' end