|
|
d03acf0add
|
temp
|
2026-05-26 15:20:50 +08:00 |
|
|
|
e6048ea010
|
feat(auth): 实现登录限流和性能优化
性能优化:
- 添加数据库索引优化查询性能 (006)
- weather_data: user_id, date, is_favorite 索引
- users: openid 索引
- payment_orders: status 索引
- 新增 refresh_tokens 表支持双 Token 机制 (004)
- 新增 web_login_codes 表支持网页端扫码登录 (005)
安全增强:
- 实现基于 IP 的登录限流 (rate_limiter.rs)
- 滑动窗口算法: 5次/分钟/IP
- 自动清理过期记录
- 429 TooManyRequests 响应
新模块:
- src/rate_limiter.rs: 限流模块
- src/alipay.rs: 支付宝签名模块 (RSA2)
- src/error.rs: 统一错误类型 (含 TooManyRequests)
- src/handlers/meta.rs: 元数据处理器
代码清理:
- 修复 .gitignore 规则,正确跟踪 src/ 和 migrations/
|
2026-04-24 16:13:49 +08:00 |
|
|
|
988828b984
|
feat(deploy): 添加开发环境 systemd 服务,改进部署文档
|
2026-04-19 00:31:26 +08:00 |
|
|
|
9d452c4e75
|
feat: 统一前后端日志和错误处理
|
2026-04-19 00:14:22 +08:00 |
|
|
|
61f3e79b2a
|
chore: 更新 .gitignore 忽略本地配置和构建产物
- 添加 .clawhub/ - clawhub 配置目录
- 添加 .env.example - 环境变量模板
- 添加 config/ - 本地配置文件目录
- 添加 logs/ - 日志文件目录
|
2026-04-17 11:13:38 +08:00 |
|
|
|
74c72d9d2f
|
添加集成测试框架,更新 .gitignore
- 添加 tests/integration_test.rs 测试框架
- .gitignore 排除 .sisyphus/ 工作区目录
|
2026-03-25 13:18:25 +08:00 |
|
|
|
67c3be3c9e
|
在数据库中添加了Version字段,并修改前端,不再使用指定的Version
|
2026-01-08 14:12:34 +08:00 |
|
|
|
e6f937fe44
|
initialize
|
2025-09-04 16:36:08 +08:00 |
|