Skip to content

feat(zer-659): 系统设置 Telegram 增加「测试代理连通性」入口 - #151

Open
ZeroPointSix wants to merge 1 commit into
feat/ant-design-pro-frontend-migrationfrom
fix/zer-659-telegram-proxy-test
Open

feat(zer-659): 系统设置 Telegram 增加「测试代理连通性」入口#151
ZeroPointSix wants to merge 1 commit into
feat/ant-design-pro-frontend-migrationfrom
fix/zer-659-telegram-proxy-test

Conversation

@ZeroPointSix

Copy link
Copy Markdown
Owner

背景

新旧前端对照时,旧站系统设置 → 自动化 → Telegram 支持「测试连通性」(用代理实际请求 api.telegram.org/getMe)。新前端 /settings → 通知 已有 Telegram 配置表单(Bot Token / Chat ID / 轮询间隔 / 代理 URL / 测试 Telegram),但缺代理连通性测试入口。后端接口 POST /api/settings/test-telegram-proxy 已存在,前端未接入。

改动

  • services/outlook/settings.ts 新增 testTelegramProxy(proxyUrl)TelegramProxyTestResponse 类型
  • 通知 Tab Telegram 区块新增「测试代理连通性」按钮,调用后端 getMe 探测
  • 测试前要求先保存(与 Webhook 测试行为一致),避免用未保存的表单值误导
  • 成功/失败/耗时/错误码以 Alert 展示
  • 代理 URL 输入框补充格式提示

验证

  • 本地: biome lint ✅ / tsc ✅ / vitest 110/110 ✅ / 生产构建 ✅
  • CI: 待 PR 触发

Refs ZER-659

@linear-code

linear-code Bot commented Aug 15, 2026

Copy link
Copy Markdown

ZER-659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant