feat:增加微信小程序码识别获取凡泰小程序id的接口

master
wangtao 2021-06-24 20:54:02 +08:00
parent 21b9b1e5a3
commit 0d169b9e14
4 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -5,11 +5,11 @@
// Created by EDY on 2021/6/22.
//
#import "MOP_parseWXQrCode.h"
#import "MOP_parseAppletInfoFromWXQrCode.h"
#import "MOPTools.h"
#import <FinApplet/FinApplet.h>
@implementation MOP_parseWXQrCode
@implementation MOP_parseAppletInfoFromWXQrCode
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel {
NSLog(@"MOP_parseWXQrCode%@", self.qrCode);

View File

@ -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

View File

@ -164,11 +164,11 @@ class Mop {
Map<String, Object> params = {'info': info};
return await _channel.invokeMapMethod("scanOpenApplet", params);
}
Future<Map<String, dynamic>> parseWXQrcode(String qrCode,String apiServer) async {
final ret =
await _channel.invokeMapMethod("parseWXQrCode", {"wxQrCode": qrCode,"apiServer":apiServer});
Future<Map<String, dynamic>> parseAppletInfoFromWXQrCode(
String qrCode, String apiServer) async {
final ret = await _channel.invokeMapMethod("parseAppletInfoFromWXQrCode",
{"qrCode": qrCode, "apiServer": apiServer});
return Map<String, dynamic>.from(ret);
}