zlibproxy/.history/config/plugin/nsp-team/webman-throttler/app_20230101182209.php
2023-01-02 19:56:44 +08:00

16 lines
489 B
PHP

<?php
return [
'enable' => true,
'capacity' => 60, // The number of requests the "bucket" can hold
'seconds' => 60, // The time it takes the "bucket" to completely refill
'cost' => 1, // The number of tokens this action uses.
'customer_handle' => [
'class' => \support\Response::class,
'constructor' => [
429,
array(),
json_encode(['success' => false, 'msg' => '请求次数太频繁'], 256),
],
],
];