diff --git a/ios/Classes/Api/MOP_removeUsedApplet.h b/ios/Classes/Api/MOP_removeUsedApplet.h new file mode 100644 index 0000000..cce9056 --- /dev/null +++ b/ios/Classes/Api/MOP_removeUsedApplet.h @@ -0,0 +1,16 @@ +// +// MOP_removeUsedApplet.h +// mop +// +// Created by EDY on 2021/9/3. +// + +#import "MOPBaseApi.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface MOP_removeUsedApplet : MOPBaseApi + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/Api/MOP_removeUsedApplet.m b/ios/Classes/Api/MOP_removeUsedApplet.m new file mode 100644 index 0000000..e0c4ebe --- /dev/null +++ b/ios/Classes/Api/MOP_removeUsedApplet.m @@ -0,0 +1,24 @@ +// +// MOP_removeUsedApplet.m +// mop +// +// Created by EDY on 2021/9/3. +// + +#import "MOP_removeUsedApplet.h" + +@implementation MOP_removeUsedApplet + +- (void)setupApiWithSuccess:(void (^)(NSDictionary * _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