未登录处理
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user