From f37b1e8952e499f538540f0b70df7d7608a25f70 Mon Sep 17 00:00:00 2001 From: ste87 Date: Sat, 14 Mar 2026 16:41:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Speed/StoreServerRequest.p?= =?UTF-8?q?hp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Speed/StoreServerRequest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Speed/StoreServerRequest.php b/Speed/StoreServerRequest.php index 58c15f2..b76a988 100644 --- a/Speed/StoreServerRequest.php +++ b/Speed/StoreServerRequest.php @@ -15,6 +15,16 @@ use Illuminate\Validation\Validator; */ class StoreServerRequest extends BaseApiRequest { + protected function prepareForValidation() + { + // Map camelCase to snake_case for rateLimit + $this->merge([ + 'limits' => [ + 'rate_limit' => $this->input('limits.rateLimit'), + ], + ]); + } + public function rules(): array { $rules = Server::getRules();