2
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#import "KBAPI.h"
|
||||
//#import <MJExtension/MJExtension.h>
|
||||
#import "KBMyMainModel.h"
|
||||
#import "KBSkinService.h"
|
||||
#import "KBSkinInstallBridge.h"
|
||||
|
||||
NSString * const KBUserCharacterDeletedNotification = @"KBUserCharacterDeletedNotification";
|
||||
@@ -117,22 +118,12 @@ NSString * const KBUserCharacterDeletedNotification = @"KBUserCharacterDeletedNo
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
|
||||
NSError *lastError = nil;
|
||||
for (NSString *skinId in themeIds) {
|
||||
if (skinId.length == 0) { continue; }
|
||||
BOOL ok = [KBSkinInstallBridge removeInstalledSkinWithId:skinId error:&lastError];
|
||||
if (!ok) {
|
||||
break;
|
||||
}
|
||||
[[KBSkinService shared] deleteSkinsWithIds:themeIds
|
||||
completion:^(BOOL success, NSError * _Nullable error) {
|
||||
if (completion) {
|
||||
completion(success, error);
|
||||
}
|
||||
BOOL success = (lastError == nil);
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
if (completion) {
|
||||
completion(success, lastError);
|
||||
}
|
||||
});
|
||||
});
|
||||
}];
|
||||
}
|
||||
|
||||
/// 更新用户人设排序
|
||||
|
||||
Reference in New Issue
Block a user