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

Function queryEfunCard

static/js/payment.js:1862–1880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1860}
1861
1862async function queryEfunCard() {
1863 const config = collectEfunConfig();
1864 if (!config.code) {
1865 toast.warning("请先填写 CDK 激活码");
1866 return;
1867 }
1868 try {
1869 const data = await callEfunApi("query", {
1870 code: config.code,
1871 base_url: config.base_url,
1872 api_key: config.api_key,
1873 });
1874 setEfunResult(data?.data || data);
1875 toast.success("查卡完成");
1876 } catch (error) {
1877 setEfunResult(`查卡失败: ${formatErrorMessage(error)}`, true);
1878 toast.error(`查卡失败: ${formatErrorMessage(error)}`);
1879 }
1880}
1881
1882async function queryEfunBilling() {
1883 const config = collectEfunConfig();

Callers

nothing calls this directly

Calls 7

collectEfunConfigFunction · 0.85
callEfunApiFunction · 0.85
setEfunResultFunction · 0.85
formatErrorMessageFunction · 0.85
warningMethod · 0.80
successMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected