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

Function queryEfunBilling

static/js/payment.js:1882–1900  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1880}
1881
1882async function queryEfunBilling() {
1883 const config = collectEfunConfig();
1884 if (!config.code) {
1885 toast.warning("请先填写 CDK 激活码");
1886 return;
1887 }
1888 try {
1889 const data = await callEfunApi("billing", {
1890 code: config.code,
1891 base_url: config.base_url,
1892 api_key: config.api_key,
1893 });
1894 setEfunResult(data?.data || data);
1895 toast.success("账单查询完成");
1896 } catch (error) {
1897 setEfunResult(`账单查询失败: ${formatErrorMessage(error)}`, true);
1898 toast.error(`账单查询失败: ${formatErrorMessage(error)}`);
1899 }
1900}
1901
1902async function queryEfun3ds() {
1903 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