Sfoglia il codice sorgente

APP/小程序-验证码限制调整

xupuyuan 1 anno fa
parent
commit
378889c79f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/common/middleware/RateLimitMiddleware.php

+ 2 - 2
app/common/middleware/RateLimitMiddleware.php

@@ -9,8 +9,8 @@ class RateLimitMiddleware
9
 {
9
 {
10
     // 频率限制配置(单位:秒)
10
     // 频率限制配置(单位:秒)
11
     protected $rules = [
11
     protected $rules = [
12
-        'ip' => ['limit' => 10, 'window' => 60],    // 每IP每分钟10次
13
-        'mobile' => ['limit' => 5, 'window' => 3600] // 每手机号每小时5次
12
+        'ip' => ['limit' => 20, 'window' => 60],    // 每IP每分钟10次
13
+        'mobile' => ['limit' => 20, 'window' => 3600] // 每手机号每小时5次
14
     ];
14
     ];
15
 
15
 
16
     public function handle($request, \Closure $next)
16
     public function handle($request, \Closure $next)