Browse Source

调整年龄范围

datasub12_previous
H Vs 1 year ago
parent
commit
02ecc05f1a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 1
- 1
HealthMonitor.Service/Resolver/BloodpressResolver.cs View File

@@ -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;


Loading…
Cancel
Save