From ed36b834b8b169ef2c875a107b0b60e7452efdbb Mon Sep 17 00:00:00 2001 From: mengzhang Date: Mon, 25 Jul 2022 23:41:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=80=A7=E5=88=AB=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20,=E7=94=B7=E6=80=A7=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E4=B8=BA=E5=A5=B3=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- id_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/id_validator.go b/id_validator.go index 548adae..55d7dc1 100644 --- a/id_validator.go +++ b/id_validator.go @@ -83,7 +83,7 @@ func GetInfo(id string, strict bool) (IdInfo, error) { // 性别 sex := 1 - if (cast.ToInt(code["order"]) % 2) == 0 { + if (cast.ToInt(code["order"][2]) % 2) == 0 { sex = 0 }