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

Function showGeneratedLink

static/js/payment.js:2084–2099  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

2082}
2083
2084function showGeneratedLink(data) {
2085 generatedLink = data.link || "";
2086 const linkText = document.getElementById("link-text");
2087 const linkBox = document.getElementById("link-box");
2088 const statusEl = document.getElementById("open-status");
2089 if (!linkText || !linkBox || !statusEl) return;
2090
2091 linkText.value = generatedLink;
2092 linkBox.classList.add("show");
2093
2094 const source = data.source ? `来源: ${data.source}` : "";
2095 const routeHint = data.is_official_checkout
2096 ? "已拿到官方 checkout 链接,可直接绑卡"
2097 : "当前是中转链接,点击“直接打开支付页”继续跳转";
2098 statusEl.textContent = [source, routeHint].filter(Boolean).join(" | ");
2099}
2100
2101document.addEventListener("DOMContentLoaded", () => {
2102 const countrySelect = document.getElementById("country-select");

Callers 2

generateLinkFunction · 0.85
createBindCardTaskFunction · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected