优化未登录 键盘点击充值去登录

This commit is contained in:
2025-12-18 13:20:49 +08:00
parent 10ba4cd80f
commit 38a3d2879e

View File

@@ -192,6 +192,22 @@ static void KBSkinInstallNotificationCallback(CFNotificationCenterRef center,
} }
- (void)showSubscriptionPanel { - (void)showSubscriptionPanel {
// 1) 访
if (![[KBFullAccessManager shared] hasFullAccess]) {
// 访
// [KBHUD showInfo:KBLocalized(@"处理中…")];
[[KBFullAccessManager shared] ensureFullAccessOrGuideInView:self.view];
return;
}
//
// 2) -> App App
if (!KBAuthManager.shared.isLoggedIn) {
NSString *schemeStr = [NSString stringWithFormat:@"%@://login?src=keyboard", KB_APP_SCHEME];
NSURL *scheme = [NSURL URLWithString:schemeStr];
// UIApplication App
BOOL ok = [KBHostAppLauncher openHostAppURL:scheme fromResponder:self.view];
return;
}
[self showFunctionPanel:NO]; [self showFunctionPanel:NO];
KBKeyboardSubscriptionView *panel = self.subscriptionView; KBKeyboardSubscriptionView *panel = self.subscriptionView;
if (!panel.superview) { if (!panel.superview) {