diff --git a/src/app/api/auth/send-otp/route.ts b/src/app/api/auth/send-otp/route.ts index 6041e61..b8fe26a 100644 --- a/src/app/api/auth/send-otp/route.ts +++ b/src/app/api/auth/send-otp/route.ts @@ -14,7 +14,7 @@ const Body = z.object({ /** * POST /api/auth/send-otp - * 发送短信验证码 · 单手机号 60s 限频 / 单 IP 5 分钟 5 次 + * 发送短信验证码 · 单手机号 60s 限频 / 单 IP 5 分钟 100 次 */ export async function POST(req: NextRequest) { try { @@ -31,7 +31,7 @@ export async function POST(req: NextRequest) { } const ip = await getClientIp(); if (ip) { - const ipRl = await rateLimit(`otp:ip:${ip}`, 300, 5); + const ipRl = await rateLimit(`otp:ip:${ip}`, 300, 100); if (!ipRl.allowed) return ERR.RATE_LIMITED(); }