(id)
| 2228 | |
| 2229 | // 查询收件箱验证码 |
| 2230 | async function checkInboxCode(id) { |
| 2231 | toast.info('正在查询收件箱...'); |
| 2232 | try { |
| 2233 | const result = await api.post(`/accounts/${id}/inbox-code`); |
| 2234 | if (result.success) { |
| 2235 | showInboxCodeResult(result.code, result.email); |
| 2236 | } else { |
| 2237 | toast.error('查询失败: ' + (result.error || '未收到验证码')); |
| 2238 | } |
| 2239 | } catch (error) { |
| 2240 | toast.error('查询失败: ' + error.message); |
| 2241 | } |
| 2242 | } |
| 2243 | |
| 2244 | function showInboxCodeResult(code, email) { |
| 2245 | elements.modalBody.innerHTML = ` |
nothing calls this directly
no test coverage detected