删除storkit 1
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
#import "AppleSignInManager.h"
|
||||
#import "KBNetworkManager.h"
|
||||
#import "KBAuthManager.h"
|
||||
#import "FGIAPManager.h"
|
||||
#import "IAPVerifyTransactionObj.h"
|
||||
#import "KBAPI.h"
|
||||
#import "KBUser.h"
|
||||
#import "KBMyVM.h"
|
||||
@@ -19,14 +17,6 @@
|
||||
|
||||
@implementation KBLoginVM
|
||||
|
||||
/// 统一初始化内购(只执行一次)。既可以在“启动时已登录”的场景调用,也可以在“登录成功回调”里调用。
|
||||
+ (void)kb_configureIAPIfNeeded {
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
// [[FGIAPManager shared] setConfigureWith:[IAPVerifyTransactionObj new]];
|
||||
});
|
||||
}
|
||||
|
||||
+ (instancetype)shared {
|
||||
static KBLoginVM *vm; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ vm = [KBLoginVM new]; });
|
||||
return vm;
|
||||
@@ -76,7 +66,6 @@
|
||||
return;
|
||||
}
|
||||
[[KBUserSessionManager shared] handleLoginSuccessWithUser:user];
|
||||
[KBLoginVM kb_configureIAPIfNeeded];
|
||||
[self kb_syncKeyboardCharactersAfterLogin];
|
||||
if (completion) completion(YES, nil);
|
||||
// 保存登录态到共享钥匙串;供 App 与扩展共享
|
||||
@@ -113,7 +102,6 @@
|
||||
return;
|
||||
}
|
||||
[[KBUserSessionManager shared] handleLoginSuccessWithUser:user];
|
||||
[KBLoginVM kb_configureIAPIfNeeded];
|
||||
[self kb_syncKeyboardCharactersAfterLogin];
|
||||
if (completion) completion(YES, nil);
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user