(filename)
| 1582 | } |
| 1583 | |
| 1584 | async function fetchAntigravityUserEmail(filename) { |
| 1585 | try { |
| 1586 | showStatus('正在获取用户邮箱...', 'info'); |
| 1587 | const response = await fetch(`./creds/fetch-email/${encodeURIComponent(filename)}?mode=antigravity`, { |
| 1588 | method: 'POST', |
| 1589 | headers: getAuthHeaders() |
| 1590 | }); |
| 1591 | const data = await response.json(); |
| 1592 | if (response.ok && data.user_email) { |
| 1593 | showStatus(`成功获取邮箱: ${data.user_email}`, 'success'); |
| 1594 | // 直接更新卡片中的邮箱显示,不刷新整个列表 |
| 1595 | updateEmailDisplay(filename, data.user_email, 'antigravity'); |
| 1596 | } else { |
| 1597 | showStatus(data.message || '无法获取用户邮箱', 'error'); |
| 1598 | } |
| 1599 | } catch (error) { |
| 1600 | showStatus(`获取邮箱失败: ${error.message}`, 'error'); |
| 1601 | } |
| 1602 | } |
| 1603 | |
| 1604 | async function verifyProjectId(filename) { |
| 1605 | try { |
nothing calls this directly
no test coverage detected