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

Function renderEfunPoolHint

static/js/payment.js:1734–1748  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1732}
1733
1734function renderEfunPoolHint() {
1735 const hintEl = document.getElementById("efun-pool-hint");
1736 if (!hintEl) return;
1737 const manualCode = normalizeEfunCode(getInputValue("efun-code-input"));
1738 const available = getAvailableEfunPoolCodes();
1739 if (manualCode) {
1740 hintEl.textContent = `已手动输入兑换码;卡池可用(供应商=${CARD_POOL_EFUN_SUPPLIER_LABEL}):${available.length}`;
1741 return;
1742 }
1743 if (available.length > 0) {
1744 hintEl.textContent = `卡池可用(供应商=${CARD_POOL_EFUN_SUPPLIER_LABEL}):${available.length},留空将自动使用第一张`;
1745 return;
1746 }
1747 hintEl.textContent = `卡池可用(供应商=${CARD_POOL_EFUN_SUPPLIER_LABEL}):0,请手动输入兑换码`;
1748}
1749
1750function resolveEfunCodeFromInputOrPool() {
1751 const manualCode = normalizeEfunCode(getInputValue("efun-code-input"));

Callers 3

updateBindModeSpecificUiFunction · 0.85
payment.jsFile · 0.85
createBindCardTaskFunction · 0.85

Calls 3

normalizeEfunCodeFunction · 0.85
getInputValueFunction · 0.85

Tested by

no test coverage detected