未登录处理

This commit is contained in:
2025-12-19 13:34:58 +08:00
parent ea4ecc05b4
commit 182e5b9da1
2 changed files with 16 additions and 0 deletions

View File

@@ -234,18 +234,30 @@
}
- (void)onCenterPlusTappedInternal {
if (![KBUserSessionManager shared].isLoggedIn) {
[[KBUserSessionManager shared] goLoginVC];
return;
}
if (self.onCenterPlusTapped) {
self.onCenterPlusTapped(self.firstCharacter);
}
}
- (void)onLeftPlusTappedInternal {
if (![KBUserSessionManager shared].isLoggedIn) {
[[KBUserSessionManager shared] goLoginVC];
return;
}
if (self.onLeftPlusTapped) {
self.onLeftPlusTapped(self.secondCharacter);
}
}
- (void)onRightPlusTappedInternal {
if (![KBUserSessionManager shared].isLoggedIn) {
[[KBUserSessionManager shared] goLoginVC];
return;
}
if (self.onRightPlusTapped) {
self.onRightPlusTapped(self.thirdCharacter);
}