()
| 1880 | } |
| 1881 | |
| 1882 | async 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 | |
| 1902 | async function queryEfun3ds() { |
| 1903 | const config = collectEfunConfig(); |
nothing calls this directly
no test coverage detected