Skip to content

限次模块接入验证码限流#2

Merged
zhoutaoo merged 12 commits into
masterfrom
feature-ratelimit
Jul 4, 2026
Merged

限次模块接入验证码限流#2
zhoutaoo merged 12 commits into
masterfrom
feature-ratelimit

Conversation

@zhoutaoo

@zhoutaoo zhoutaoo commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

变更说明

  • 新增 ratelimit 模块,支持注解式和编程式限次检查
  • 固定窗口计数使用 Redis 原子脚本,避免并发超发
  • captcha 模块限次改为复用 ratelimit 能力
  • 修复客户端 IP 提取对 unknown 头的处理

测试

  • jenv exec mvn test

@zhoutaoo zhoutaoo merged commit e066f98 into master Jul 4, 2026
1 check passed
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