From 708e327ddf0ec6eab54200befcfff635223a8ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 6 Jan 2026 19:01:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=BF=85=E4=BC=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/validate_v10_parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/validate_v10_parse.go b/util/validate_v10_parse.go index 65ca88e..56d179c 100644 --- a/util/validate_v10_parse.go +++ b/util/validate_v10_parse.go @@ -42,7 +42,7 @@ func ParseValidateRule(dataType reflect.Type, ruleStr string) ValidateRule { if len(itemRule) == 0 { continue } - if strings.Contains(itemRule, "=") { + if !strings.Contains(itemRule, "=") { // 一定是无需要值的验证规则 switch itemRule { case consts.ValidatorRuleCommonRequired.String(): // 必传