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

Function onBindModeChange

static/js/payment.js:1995–2018  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1993}
1994
1995function onBindModeChange() {
1996 const mode = getBindMode();
1997 updateBindModeSpecificUi(mode);
1998
1999 const actionBtn = document.getElementById("create-bind-task-btn");
2000 if (actionBtn) {
2001 actionBtn.classList.remove("btn-primary", "btn-secondary", "btn-success", "btn-purple", "btn-danger");
2002 actionBtn.classList.remove("efun-subscribe-wide");
2003 if (mode === "local_auto") {
2004 actionBtn.textContent = "创建并执行全自动订阅";
2005 actionBtn.classList.add("btn-secondary");
2006 } else if (mode === "vendor_efun") {
2007 actionBtn.textContent = "订阅";
2008 actionBtn.classList.add("btn-success");
2009 actionBtn.classList.add("efun-subscribe-wide");
2010 } else {
2011 actionBtn.textContent = "生成并加入绑卡任务(半自动)";
2012 actionBtn.classList.add("btn-secondary");
2013 }
2014 }
2015 updateSemiAutoActionsVisibility(mode);
2016 updateSelectedAccountEmailLabel();
2017 storage.set(BIND_MODE_STORAGE_KEY, mode);
2018}
2019
2020function collectThirdPartyConfig() {
2021 const apiUrl = getInputValue("third-party-api-url");

Callers 1

restoreBindModeConfigFunction · 0.85

Calls 4

getBindModeFunction · 0.85
updateBindModeSpecificUiFunction · 0.85

Tested by

no test coverage detected