From 7d2716da7a6f85f70d07c4810bdcb6676e4a5a2f Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Fri, 6 Mar 2026 10:56:36 +0800 Subject: [PATCH] f --- .../api/services/processors/dwbg/dwbg8b4d_processor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/domains/api/services/processors/dwbg/dwbg8b4d_processor.go b/internal/domains/api/services/processors/dwbg/dwbg8b4d_processor.go index caf2bb1..77d4421 100644 --- a/internal/domains/api/services/processors/dwbg/dwbg8b4d_processor.go +++ b/internal/domains/api/services/processors/dwbg/dwbg8b4d_processor.go @@ -4011,8 +4011,10 @@ func calculateAgeAndSex(idCard string) (int, string) { return 0, "" } + now := time.Now() + // 计算年龄(简化处理,使用当前年份) - age := 2024 - year + age := now.Year() - year // 提取性别(第17位,奇数为男,偶数为女) sexCode := idCard[16:17]