diff --git a/ios/Classes/Api/MOP_parseWXQrCode.h b/ios/Classes/Api/MOP_parseAppletInfoFromWXQrCode.h similarity index 84% rename from ios/Classes/Api/MOP_parseWXQrCode.h rename to ios/Classes/Api/MOP_parseAppletInfoFromWXQrCode.h index 80d757c..904f380 100644 --- a/ios/Classes/Api/MOP_parseWXQrCode.h +++ b/ios/Classes/Api/MOP_parseAppletInfoFromWXQrCode.h @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface MOP_parseWXQrCode : MOPBaseApi +@interface MOP_parseAppletInfoFromWXQrCode : MOPBaseApi @property(nonatomic,copy)NSString* qrCode; //二维码url @property(nonatomic,copy)NSString* apiServer; //服务器地址 @end diff --git a/ios/Classes/Api/MOP_parseWXQrCode.m b/ios/Classes/Api/MOP_parseAppletInfoFromWXQrCode.m similarity index 87% rename from ios/Classes/Api/MOP_parseWXQrCode.m rename to ios/Classes/Api/MOP_parseAppletInfoFromWXQrCode.m index 2f2e6c6..700d49f 100644 --- a/ios/Classes/Api/MOP_parseWXQrCode.m +++ b/ios/Classes/Api/MOP_parseAppletInfoFromWXQrCode.m @@ -5,11 +5,11 @@ // Created by EDY on 2021/6/22. // -#import "MOP_parseWXQrCode.h" +#import "MOP_parseAppletInfoFromWXQrCode.h" #import "MOPTools.h" #import -@implementation MOP_parseWXQrCode +@implementation MOP_parseAppletInfoFromWXQrCode - (void)setupApiWithSuccess:(void (^)(NSDictionary * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel { NSLog(@"MOP_parseWXQrCode:%@", self.qrCode); diff --git a/ios/mop.podspec b/ios/mop.podspec index 0092394..798adb0 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -16,7 +16,7 @@ A finclip miniprogram flutter sdk. s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.30.1' - s.dependency 'FinAppletExt' , '2.30.1' + s.dependency 'FinApplet' , '2.31.0-alpha20210624v05' + s.dependency 'FinAppletExt' , '2.31.0-alpha20210624v05' end diff --git a/lib/mop.dart b/lib/mop.dart index 505fff8..524639e 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -164,11 +164,11 @@ class Mop { Map params = {'info': info}; return await _channel.invokeMapMethod("scanOpenApplet", params); } - - Future> parseWXQrcode(String qrCode,String apiServer) async { - final ret = - await _channel.invokeMapMethod("parseWXQrCode", {"wxQrCode": qrCode,"apiServer":apiServer}); + Future> parseAppletInfoFromWXQrCode( + String qrCode, String apiServer) async { + final ret = await _channel.invokeMapMethod("parseAppletInfoFromWXQrCode", + {"qrCode": qrCode, "apiServer": apiServer}); return Map.from(ret); }