mop-flutter-sdk/ios/Classes/Api/MOP_removeUsedApplet.m

25 lines
654 B
Dart
Raw Permalink Normal View History

2021-09-07 16:52:05 +08:00
//
// MOP_removeUsedApplet.m
// mop
//
// Created by EDY on 2021/9/3.
//
#import "MOP_removeUsedApplet.h"
@implementation MOP_removeUsedApplet
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel
{
NSLog(@"begin");
if (!self.param || !self.param[@"appId"]) {
NSLog(@"removeUsedApplet失败打印");
failure(@{@"errMsg": @"removeUsedApplet:fail 2"});
return;
}
[[FATClient sharedClient] removeAppletFromLocalCache:self.param[@"appId"]];
NSLog(@"removeUsedApplet成功回调");
success(@{});
}
@end