处理网络请求token为空的问题

This commit is contained in:
2025-12-17 15:39:45 +08:00
parent 5bd20a911f
commit c6b4444589
4 changed files with 18 additions and 8 deletions

View File

@@ -171,7 +171,7 @@
self.myVM = [[KBMyVM alloc] init];
}
/// tokenheadtoken
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.myVM fetchCharacterListByUserWithCompletion:^(NSArray<KBCharacter *> * _Nonnull characterArray, NSError * _Nullable error) {
if (error) {
KBLOG(@"[Login] Failed to sync keyboard characters after login: %@", error);