@@ -140,7 +140,7 @@ namespace HealthMonitor.Service.Resolver | |||
} | |||
// 验证年龄是否在范围 (2 - 120) | |||
var age = SafeType.SafeInt(DateTime.Today.Year - person?.Person.BornDate!.Value.Year!); | |||
if (age < 1 || age > 120) | |||
if (age < 2 || age > 120) | |||
{ | |||
_logger.LogWarning("验证年龄,不在范围 (2 - 120)岁,跳过此消息"); | |||
return; | |||