feat:添加scanOpenApplet接口
parent
4c3601cc5f
commit
155db4903b
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// MOP_scanOpenApplet.h
|
||||
// mop
|
||||
//
|
||||
// Created by beetle_92 on 2021/6/7.
|
||||
//
|
||||
|
||||
#import "MOPBaseApi.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MOP_scanOpenApplet : MOPBaseApi
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// MOP_scanOpenApplet.m
|
||||
// mop
|
||||
//
|
||||
// Created by beetle_92 on 2021/6/7.
|
||||
//
|
||||
|
||||
#import "MOP_scanOpenApplet.h"
|
||||
#import <FinApplet/FinApplet.h>
|
||||
|
||||
@implementation MOP_scanOpenApplet
|
||||
|
||||
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel {
|
||||
NSLog(@"MOP_scanOpenApplet");
|
||||
}
|
||||
|
||||
@end
|
|
@ -157,6 +157,13 @@ class Mop {
|
|||
.then((value) => value["data"]);
|
||||
}
|
||||
|
||||
///
|
||||
/// (扫码后)解密-鉴权-打开小程序
|
||||
///
|
||||
Future scanOpenApplet(String info) async {
|
||||
return await _channel.invokeMapMethod("scanOpenApplet");
|
||||
}
|
||||
|
||||
///
|
||||
/// register handler to provide custom info or behaviour
|
||||
/// 注册小程序事件处理
|
||||
|
|
Loading…
Reference in New Issue