diff --git a/src/panels/ICHelperPanel.ts b/src/panels/ICHelperPanel.ts index 71287d2..bdc5ff6 100644 --- a/src/panels/ICHelperPanel.ts +++ b/src/panels/ICHelperPanel.ts @@ -540,12 +540,10 @@ export async function showICHelperPanel( { console.log("[ICHelperPanel] 收到 checkWelcomeModal 消息"); const userInfo = getCachedUserInfo(); - const hasWelcomed = context.globalState.get("pluginTrialWelcomed"); console.log("[ICHelperPanel] 用户信息:", userInfo); console.log("[ICHelperPanel] isPluginTrial:", userInfo?.isPluginTrial); console.log("[ICHelperPanel] pluginTrialExpiresAt:", userInfo?.pluginTrialExpiresAt); - console.log("[ICHelperPanel] hasWelcomed:", hasWelcomed); if (userInfo?.isPluginTrial === true) { // undefined 表示无效,不显示 @@ -567,16 +565,11 @@ export async function showICHelperPanel( } } - // 未过期或长期有效(null),且未显示过欢迎弹窗 - if (!hasWelcomed) { - await context.globalState.update("pluginTrialWelcomed", true); - console.log("[ICHelperPanel] ✅ 发送 showWelcomeModal 命令到前端"); - panel.webview.postMessage({ - command: "showWelcomeModal", - }); - } else { - console.log("[ICHelperPanel] 已显示过欢迎弹窗"); - } + // 未过期或长期有效(null),显示欢迎弹窗 + console.log("[ICHelperPanel] ✅ 发送 showWelcomeModal 命令到前端"); + panel.webview.postMessage({ + command: "showWelcomeModal", + }); } else { console.log("[ICHelperPanel] 非试用用户"); }