你的用户名
|
6108b9c5ed
|
feat: 添加Telegram通知增强功能
Deploy to Production / Build and Test (push) Has been cancelled
Deploy to Production / Deploy to Server (push) Has been cancelled
✨ 新增功能:
- 通知频率控制(防止消息轰炸)
- 消息去重机制(5分钟内相同内容不重复发送)
- 失败重试机制(最多3次重试)
- 通知历史记录(完整的发送日志)
- 优先级标识(低/普通/高/紧急)
- 批量通知支持(预留功能)
📊 数据库增强:
- telegram_notification_configs 新增字段:
- priority: 通知优先级
- rate_limit_seconds: 频率限制(秒)
- batch_enabled: 批量通知开关
- batch_interval_minutes: 批量间隔
- retry_enabled: 重试开关
- retry_max_attempts: 最大重试次数
- telegram_notification_history 新表:
- 记录所有通知发送历史
- 支持状态追踪(pending/sent/failed)
- 支持重试计数
- 支持错误信息记录
🔧 核心实现:
- telegram-bot-enhanced.ts: 增强版通知引擎
- generateContentHash(): 内容hash生成
- checkRateLimit(): 频率限制检查
- isDuplicateMessage(): 消息去重
- recordNotification(): 记录通知历史
- updateNotificationStatus(): 更新通知状态
- getPendingRetries(): 获取待重试通知
- notifyTransactionEnhanced(): 增强版通知
- retryFailedNotifications(): 失败重试
✅ 测试结果:
- Bot Token: 8270297136:AAEek5CIO8RDudo8eqlg2vy4ilcyqQMoEQ8
- Chat ID: 1102887169
- Bot用户名: @ktcaiwubot
- 测试消息: ✅ 发送成功
|
2025-11-04 23:22:39 +08:00 |
|
你的用户名
|
a4e4168c00
|
feat: 添加Telegram Bot通知功能
Deploy to Production / Build and Test (push) Has been cancelled
Deploy to Production / Deploy to Server (push) Has been cancelled
✨ 新功能:
- 添加Telegram Bot通知支持
- 账目记录自动推送到Telegram
- 支持多个Bot配置管理
- 支持群组和个人通知
📊 数据库:
- 新增telegram_notification_configs表
- 存储Bot配置和通知类型
🔧 后端API:
- GET /api/telegram/notifications - 获取所有配置
- POST /api/telegram/notifications - 创建配置
- PUT /api/telegram/notifications/:id - 更新配置
- DELETE /api/telegram/notifications/:id - 删除配置
- POST /api/telegram/test - 测试Bot配置
💬 通知功能:
- 自动发送账目记录通知
- 包含交易类型、金额、分类、账户等信息
- 支持格式化显示(类型图标、状态标识)
- 配置创建时自动测试有效性
📝 文档:
- 添加完整的使用说明文档
- API接口说明和示例
- 常见问题解答
|
2025-11-04 23:15:19 +08:00 |
|
woshiqp465
|
f4cd0a5f22
|
chore: migrate to KT financial system
|
2025-11-04 16:06:44 +08:00 |
|
woshiqp465
|
1def26f74f
|
feat: 更新财务系统功能和界面优化
- 优化财务仪表板数据展示
- 增强账户管理功能
- 改进预算和分类管理
- 完善报表和统计分析
- 优化交易管理界面
- 更新Workspace工作区
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-05 15:10:06 +08:00 |
|
woshiqp465
|
a1dc8de7e5
|
fix: 修复登录后404问题,统一前后端路由路径配置
修改后端mock菜单路径以匹配前端路由配置:
- /finance/dashboard -> /dashboard-finance
- /finance/transactions -> /transactions
- 其他财务页面路径同步修改
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-05 14:23:37 +08:00 |
|
woshiqp465
|
1e42191296
|
refactor: 整合财务系统到主应用并重构后端架构
主要变更:
- 将独立的 web-finance 应用整合到 web-antd 主应用中
- 重命名 backend-mock 为 backend,增强后端功能
- 新增财务模块 API 端点(账户、预算、类别、交易)
- 增强财务仪表板和报表功能
- 添加 SQLite 数据存储支持和财务数据导入脚本
- 优化路由结构,删除冗余的 finance-system 模块
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-04 21:14:21 +08:00 |
|