(id)
| 2215 | |
| 2216 | // 保存账号 Cookies |
| 2217 | async function saveCookies(id) { |
| 2218 | const textarea = document.getElementById(`cookies-input-${id}`); |
| 2219 | if (!textarea) return; |
| 2220 | const cookiesValue = textarea.value.trim(); |
| 2221 | try { |
| 2222 | await api.patch(`/accounts/${id}`, { cookies: cookiesValue }); |
| 2223 | toast.success('Cookies 已保存'); |
| 2224 | } catch (e) { |
| 2225 | toast.error('保存 Cookies 失败: ' + e.message); |
| 2226 | } |
| 2227 | } |
| 2228 | |
| 2229 | // 查询收件箱验证码 |
| 2230 | async function checkInboxCode(id) { |