未登录处理
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);
|
||||
}
|
||||
|
||||
@@ -204,6 +204,10 @@
|
||||
KBWeakSelf
|
||||
__weak typeof(cell) weakCell = cell;
|
||||
cell.onTapAction = ^{
|
||||
if (![KBUserSessionManager shared].isLoggedIn) {
|
||||
[[KBUserSessionManager shared] goLoginVC];
|
||||
return;
|
||||
}
|
||||
__strong typeof(weakSelf) self = weakSelf;
|
||||
HomeHotCell *strongCell = weakCell;
|
||||
if (!self || !strongCell) { return; }
|
||||
|
||||
Reference in New Issue
Block a user