26 lines
686 B
Dart
26 lines
686 B
Dart
//
|
||
// MOP_parseWXQrCode.m
|
||
// mop
|
||
//
|
||
// Created by EDY on 2021/6/22.
|
||
//
|
||
|
||
#import "MOP_parseWXQrCode.h"
|
||
#import "MOPTools.h"
|
||
#import <FinApplet/FinApplet.h>
|
||
|
||
@implementation MOP_parseWXQrCode
|
||
|
||
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel {
|
||
NSLog(@"MOP_parseWXQrCode:%@", self.qrCode);
|
||
[[FATClient sharedClient] parseAppletInfoFromWXQrCode:self.qrCode apiServer:self.apiServer completion:^(NSDictionary *result, FATError *aError) {
|
||
if (aError) {
|
||
failure(aError.description);
|
||
}else{
|
||
success(result);
|
||
}
|
||
}];
|
||
}
|
||
|
||
@end
|