修改KBKeyboardPanelModeFunction 必须要登录状态
This commit is contained in:
@@ -44,23 +44,31 @@
|
|||||||
[self kb_setFunctionPanelVisible:NO];
|
[self kb_setFunctionPanelVisible:NO];
|
||||||
|
|
||||||
// 2) 再展开目标面板
|
// 2) 再展开目标面板
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case KBKeyboardPanelModeFunction:
|
case KBKeyboardPanelModeFunction:
|
||||||
[self kb_setFunctionPanelVisible:YES];
|
if (!KBAuthManager.shared.isLoggedIn) {
|
||||||
break;
|
NSString *schemeStr =
|
||||||
case KBKeyboardPanelModeChat:
|
[NSString stringWithFormat:@"%@://login?src=keyboard", KB_APP_SCHEME];
|
||||||
[self kb_setChatPanelVisible:YES animated:animated];
|
NSURL *scheme = [NSURL URLWithString:schemeStr];
|
||||||
break;
|
// 从当前视图作为起点,通过响应链找到 UIApplication 再调起主 App
|
||||||
case KBKeyboardPanelModeSettings:
|
BOOL ok = [KBHostAppLauncher openHostAppURL:scheme fromResponder:self.view];
|
||||||
[self kb_setSettingViewVisible:YES animated:animated];
|
return;
|
||||||
break;
|
}
|
||||||
case KBKeyboardPanelModeSubscription:
|
[self kb_setFunctionPanelVisible:YES];
|
||||||
[self kb_setSubscriptionPanelVisible:YES animated:animated];
|
break;
|
||||||
break;
|
case KBKeyboardPanelModeChat:
|
||||||
case KBKeyboardPanelModeMain:
|
[self kb_setChatPanelVisible:YES animated:animated];
|
||||||
default:
|
break;
|
||||||
break;
|
case KBKeyboardPanelModeSettings:
|
||||||
}
|
[self kb_setSettingViewVisible:YES animated:animated];
|
||||||
|
break;
|
||||||
|
case KBKeyboardPanelModeSubscription:
|
||||||
|
[self kb_setSubscriptionPanelVisible:YES animated:animated];
|
||||||
|
break;
|
||||||
|
case KBKeyboardPanelModeMain:
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// 3) 事件埋点:保持原逻辑(仅功能面板/主面板会互相曝光)
|
// 3) 事件埋点:保持原逻辑(仅功能面板/主面板会互相曝光)
|
||||||
if (mode == KBKeyboardPanelModeFunction) {
|
if (mode == KBKeyboardPanelModeFunction) {
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ static NSDictionary<NSString *, NSDictionary *> *KBMaiPoint_PageExposureMap(void
|
|||||||
@"HomeHotVC": @{@"event_name": @"enter_home_hot", @"page_id": @"home_hot"},
|
@"HomeHotVC": @{@"event_name": @"enter_home_hot", @"page_id": @"home_hot"},
|
||||||
@"HomeRankVC": @{@"event_name": @"enter_home_rank", @"page_id": @"home_rank"},
|
@"HomeRankVC": @{@"event_name": @"enter_home_rank", @"page_id": @"home_rank"},
|
||||||
@"HomeRankContentVC": @{@"event_name": @"enter_home_rank_content", @"page_id": @"home_rank_content"},
|
@"HomeRankContentVC": @{@"event_name": @"enter_home_rank_content", @"page_id": @"home_rank_content"},
|
||||||
@"HomeSheetVC": @{@"event_name": @"enter_home_sheet", @"page_id": @"home_sheet"},
|
// @"HomeSheetVC": @{@"event_name": @"enter_home_sheet", @"page_id": @"home_sheet"},
|
||||||
@"KBCommunityVC": @{@"event_name": @"enter_community", @"page_id": @"community"},
|
@"KBCommunityVC": @{@"event_name": @"enter_community", @"page_id": @"community"},
|
||||||
@"KBSearchVC": @{@"event_name": @"enter_search", @"page_id": @"search"},
|
@"KBSearchVC": @{@"event_name": @"enter_search", @"page_id": @"search"},
|
||||||
@"KBSearchResultVC": @{@"event_name": @"enter_search_result", @"page_id": @"search_result"},
|
@"KBSearchResultVC": @{@"event_name": @"enter_search_result", @"page_id": @"search_result"},
|
||||||
|
|||||||
@@ -75,7 +75,6 @@
|
|||||||
046086D82F1A093400757C95 /* KBAIReplyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 046086D52F1A093400757C95 /* KBAIReplyCell.m */; };
|
046086D82F1A093400757C95 /* KBAIReplyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 046086D52F1A093400757C95 /* KBAIReplyCell.m */; };
|
||||||
046086D92F1A093400757C95 /* KBAICommentHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 046086D12F1A093400757C95 /* KBAICommentHeaderView.m */; };
|
046086D92F1A093400757C95 /* KBAICommentHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 046086D12F1A093400757C95 /* KBAICommentHeaderView.m */; };
|
||||||
046131142ECF454500A6FADF /* KBKeyPreviewView.m in Sources */ = {isa = PBXBuildFile; fileRef = 046131132ECF454500A6FADF /* KBKeyPreviewView.m */; };
|
046131142ECF454500A6FADF /* KBKeyPreviewView.m in Sources */ = {isa = PBXBuildFile; fileRef = 046131132ECF454500A6FADF /* KBKeyPreviewView.m */; };
|
||||||
0477BDF02EBB76E30055D639 /* HomeSheetVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDEF2EBB76E30055D639 /* HomeSheetVC.m */; };
|
|
||||||
0477BDF32EBB7B850055D639 /* KBDirectionIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDF22EBB7B850055D639 /* KBDirectionIndicatorView.m */; };
|
0477BDF32EBB7B850055D639 /* KBDirectionIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDF22EBB7B850055D639 /* KBDirectionIndicatorView.m */; };
|
||||||
0477BDFA2EBC66340055D639 /* HomeHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDF92EBC66340055D639 /* HomeHeadView.m */; };
|
0477BDFA2EBC66340055D639 /* HomeHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDF92EBC66340055D639 /* HomeHeadView.m */; };
|
||||||
0477BDFD2EBC6A170055D639 /* HomeHotVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDFC2EBC6A170055D639 /* HomeHotVC.m */; };
|
0477BDFD2EBC6A170055D639 /* HomeHotVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 0477BDFC2EBC6A170055D639 /* HomeHotVC.m */; };
|
||||||
@@ -436,8 +435,6 @@
|
|||||||
046086D52F1A093400757C95 /* KBAIReplyCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KBAIReplyCell.m; sourceTree = "<group>"; };
|
046086D52F1A093400757C95 /* KBAIReplyCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KBAIReplyCell.m; sourceTree = "<group>"; };
|
||||||
046131122ECF454500A6FADF /* KBKeyPreviewView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KBKeyPreviewView.h; sourceTree = "<group>"; };
|
046131122ECF454500A6FADF /* KBKeyPreviewView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KBKeyPreviewView.h; sourceTree = "<group>"; };
|
||||||
046131132ECF454500A6FADF /* KBKeyPreviewView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KBKeyPreviewView.m; sourceTree = "<group>"; };
|
046131132ECF454500A6FADF /* KBKeyPreviewView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KBKeyPreviewView.m; sourceTree = "<group>"; };
|
||||||
0477BDEE2EBB76E30055D639 /* HomeSheetVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeSheetVC.h; sourceTree = "<group>"; };
|
|
||||||
0477BDEF2EBB76E30055D639 /* HomeSheetVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeSheetVC.m; sourceTree = "<group>"; };
|
|
||||||
0477BDF12EBB7B850055D639 /* KBDirectionIndicatorView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KBDirectionIndicatorView.h; sourceTree = "<group>"; };
|
0477BDF12EBB7B850055D639 /* KBDirectionIndicatorView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KBDirectionIndicatorView.h; sourceTree = "<group>"; };
|
||||||
0477BDF22EBB7B850055D639 /* KBDirectionIndicatorView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KBDirectionIndicatorView.m; sourceTree = "<group>"; };
|
0477BDF22EBB7B850055D639 /* KBDirectionIndicatorView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KBDirectionIndicatorView.m; sourceTree = "<group>"; };
|
||||||
0477BDF82EBC66340055D639 /* HomeHeadView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeHeadView.h; sourceTree = "<group>"; };
|
0477BDF82EBC66340055D639 /* HomeHeadView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeHeadView.h; sourceTree = "<group>"; };
|
||||||
@@ -1735,8 +1732,6 @@
|
|||||||
children = (
|
children = (
|
||||||
0477BE022EBC83130055D639 /* HomeMainVC.h */,
|
0477BE022EBC83130055D639 /* HomeMainVC.h */,
|
||||||
0477BE032EBC83130055D639 /* HomeMainVC.m */,
|
0477BE032EBC83130055D639 /* HomeMainVC.m */,
|
||||||
0477BDEE2EBB76E30055D639 /* HomeSheetVC.h */,
|
|
||||||
0477BDEF2EBB76E30055D639 /* HomeSheetVC.m */,
|
|
||||||
0477BDFB2EBC6A170055D639 /* HomeHotVC.h */,
|
0477BDFB2EBC6A170055D639 /* HomeHotVC.h */,
|
||||||
0477BDFC2EBC6A170055D639 /* HomeHotVC.m */,
|
0477BDFC2EBC6A170055D639 /* HomeHotVC.m */,
|
||||||
0477BDFE2EBC6A330055D639 /* HomeRankVC.h */,
|
0477BDFE2EBC6A330055D639 /* HomeRankVC.h */,
|
||||||
@@ -2565,7 +2560,6 @@
|
|||||||
048908EC2EBF849300FABA60 /* KBSkinTagsContainerCell.m in Sources */,
|
048908EC2EBF849300FABA60 /* KBSkinTagsContainerCell.m in Sources */,
|
||||||
049FB2172EC20A6600FAB05D /* BMLongPressDragCellCollectionView.m in Sources */,
|
049FB2172EC20A6600FAB05D /* BMLongPressDragCellCollectionView.m in Sources */,
|
||||||
04122F8E2EC6F83F00EF7AB3 /* PayVM.m in Sources */,
|
04122F8E2EC6F83F00EF7AB3 /* PayVM.m in Sources */,
|
||||||
0477BDF02EBB76E30055D639 /* HomeSheetVC.m in Sources */,
|
|
||||||
048908E62EBF841B00FABA60 /* KBSkinDetailTagCell.m in Sources */,
|
048908E62EBF841B00FABA60 /* KBSkinDetailTagCell.m in Sources */,
|
||||||
04FC97002EB30A00007BD342 /* KBGuideTopCell.m in Sources */,
|
04FC97002EB30A00007BD342 /* KBGuideTopCell.m in Sources */,
|
||||||
04791F982ED49CE7004E8522 /* KBFont.m in Sources */,
|
04791F982ED49CE7004E8522 /* KBFont.m in Sources */,
|
||||||
|
|||||||
Reference in New Issue
Block a user