From a62ace41a20a9bf4d623d14392ce0e046d0705a3 Mon Sep 17 00:00:00 2001 From: chenwenke Date: Tue, 21 Apr 2026 10:38:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(tenant):=20=E6=9B=B4=E6=96=B0=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复了网站域名格式验证的正则表达式 - 新增对域名开头结尾连字符的校验 - 增加对端口号格式的支持 - 完善域名段长度限制验证 --- .../module/system/controller/admin/tenant/TenantController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-system/yudao-module-system-server/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/TenantController.java b/yudao-module-system/yudao-module-system-server/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/TenantController.java index fba522ae6..fbdf215ea 100644 --- a/yudao-module-system/yudao-module-system-server/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/TenantController.java +++ b/yudao-module-system/yudao-module-system-server/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/TenantController.java @@ -67,7 +67,7 @@ public class TenantController { @Operation(summary = "使用域名,获得租户信息", description = "登录界面,根据用户的域名,获得租户信息") @Parameter(name = "website", description = "域名", required = true, example = "www.iocoder.cn") public CommonResult getTenantByWebsite( - @RequestParam("website") @Pattern(regexp = "^[a-zA-Z0-9.-]+$", message = "网站域名格式不正确") String website) { + @RequestParam("website") @Pattern(regexp = "^(?!-)[A-Za-z0-9-]{1,63}(?