MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / selectPlan

Function selectPlan

static/js/payment.js:2310–2320  ·  view source on GitHub ↗
(plan)

Source from the content-addressed store, hash-verified

2308
2309// 选择套餐
2310function selectPlan(plan) {
2311 selectedPlan = plan;
2312 document.getElementById("plan-plus")?.classList.toggle("selected", plan === "plus");
2313 document.getElementById("plan-team")?.classList.toggle("selected", plan === "team");
2314 document.getElementById("team-options")?.classList.toggle("show", plan === "team");
2315
2316 // 切换套餐时隐藏已有链接,避免误用旧链接。
2317 document.getElementById("link-box")?.classList.remove("show");
2318 generatedLink = "";
2319 resetGenerateLinkButtonState();
2320}
2321
2322// 生成支付链接
2323async function generateLink() {

Callers

nothing calls this directly

Calls 2

toggleMethod · 0.80

Tested by

no test coverage detected