()
| 1860 | } |
| 1861 | |
| 1862 | async 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 | |
| 1882 | async function queryEfunBilling() { |
| 1883 | const config = collectEfunConfig(); |
nothing calls this directly
no test coverage detected