From a24da10bffd15b891c54f1584410d6516e004c72 Mon Sep 17 00:00:00 2001 From: wangtao Date: Tue, 7 Sep 2021 16:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B8=85=E9=99=A4=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=BC=93=E5=AD=98=E7=9A=84API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOP_removeUsedApplet.h | 16 ++++++++++++++++ ios/Classes/Api/MOP_removeUsedApplet.m | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 ios/Classes/Api/MOP_removeUsedApplet.h create mode 100644 ios/Classes/Api/MOP_removeUsedApplet.m 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