feat:实现copyFileAsFinFile功能
parent
128d81ae0b
commit
deb6abf1ab
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue