From 30d03cfd7a85c1d9a05e9ae54098e9dffcb9473c Mon Sep 17 00:00:00 2001 From: ste87 Date: Mon, 9 Mar 2026 12:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Checkout.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Checkout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Checkout.php b/Checkout.php index 3108298..010c7e6 100644 --- a/Checkout.php +++ b/Checkout.php @@ -195,7 +195,7 @@ class Checkout extends Component } } if ($config['name'] === 'hostname') { - $validationRules = ['required', 'string', 'regex:/^[a-zA-Z0-9]+\.[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*$/']; + $validationRules = ['required', 'string', 'max:18', 'regex:/^[a-zA-Z0-9]+\.[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*$/']; } if (count($validationRules) > 0) { $rules["checkoutConfig.{$config['name']}"] = $validationRules;