1:修改ios26tabbar的问题
2:修改键盘AI点击必须要登录装填
This commit is contained in:
@@ -99,10 +99,22 @@ static NSString * const kKBSessionInstallFlagKey = @"KBSession.installInitialize
|
||||
// 先写 Keychain(统一走 KBAuthManager)
|
||||
NSString *token = user.token;
|
||||
if (token.length > 0) {
|
||||
[[KBAuthManager shared] saveAccessToken:token
|
||||
refreshToken:nil
|
||||
expiryDate:nil
|
||||
userIdentifier:nil];
|
||||
BOOL saveOK = [[KBAuthManager shared] saveAccessToken:token
|
||||
refreshToken:nil
|
||||
expiryDate:nil
|
||||
userIdentifier:nil];
|
||||
#if DEBUG
|
||||
NSLog(@"[AuthTrace][App] saveAccessToken tokenLen=%lu saveOK=%d",
|
||||
(unsigned long)token.length, saveOK);
|
||||
#endif
|
||||
// 主动 reload 一次,便于立即验证当前进程读到的登录态
|
||||
[[KBAuthManager shared] reloadFromKeychain];
|
||||
#if DEBUG
|
||||
NSString *savedToken = [KBAuthManager shared].current.accessToken ?: @"";
|
||||
NSLog(@"[AuthTrace][App] reloadAfterSave isLoggedIn=%d tokenLen=%lu",
|
||||
[KBAuthManager shared].isLoggedIn,
|
||||
(unsigned long)savedToken.length);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 再缓存用户信息,供 App/键盘使用
|
||||
|
||||
Reference in New Issue
Block a user