fix:修复企业试用用户仍弹出邀请码的问题

This commit is contained in:
Roe-xin
2026-03-03 17:42:22 +08:00
parent de9da79042
commit 66c843b32e

View File

@ -516,8 +516,15 @@ export async function showICHelperPanel(
const userInfo = getCachedUserInfo();
if (userInfo?.isPluginTrial === true) {
// 试用用户,跳过邀请码验证,不发送消息
console.log("[ICHelperPanel] 试用用户,跳过邀请码验证");
// 试用用户,跳过邀请码验证,触发欢迎弹窗检查
console.log("[ICHelperPanel] 试用用户,跳过邀请码验证,检查欢迎弹窗");
const showWelcome = context.globalState.get("showWelcomeModal");
if (showWelcome) {
await context.globalState.update("showWelcomeModal", undefined);
panel.webview.postMessage({
command: "showWelcomeModal",
});
}
} else {
// 正式用户,检查邀请码
const {