Sfoglia il codice sorgente

调整年龄范围

datasub12_previous
H Vs 1 anno fa
parent
commit
02ecc05f1a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 1
- 1
HealthMonitor.Service/Resolver/BloodpressResolver.cs Vedi 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…
Annulla
Salva