(id)
| 1637 | } |
| 1638 | |
| 1639 | async function bootstrapSessionToken(id) { |
| 1640 | try { |
| 1641 | const result = await api.post(`/payment/accounts/${id}/session-bootstrap`, {}); |
| 1642 | if (result && result.success) { |
| 1643 | toast.success('Session Token 补全成功'); |
| 1644 | } else { |
| 1645 | toast.warning(result?.message || '未补全到 Session Token'); |
| 1646 | } |
| 1647 | } catch (error) { |
| 1648 | toast.error('补全 Session Token 失败: ' + error.message); |
| 1649 | } finally { |
| 1650 | await viewAccount(id); |
| 1651 | loadAccounts(); |
| 1652 | } |
| 1653 | } |
| 1654 | |
| 1655 | async function editSessionToken(id, currentToken = '') { |
| 1656 | const current = String(currentToken || ''); |
nothing calls this directly
no test coverage detected