Ver código fonte

调整 key 名称

datasub12_fetal_heart_rate_0
H Vs 3 meses atrás
pai
commit
4d027e3a66
3 arquivos alterados com 4 adições e 4 exclusões
  1. +1
    -1
      HealthMonitor.Service/Resolver/BloodpressResolver.cs
  2. +1
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs
  3. +2
    -2
      HealthMonitor.WebApi/Worker.cs

+ 1
- 1
HealthMonitor.Service/Resolver/BloodpressResolver.cs Ver arquivo

@@ -445,7 +445,7 @@ namespace HealthMonitor.Service.Resolver
#endregion

#region 定时下发触发器
var key = $"health_moniter/schedule_push/imei/{bp.Serialno}";
var key = $"health_monitor/schedule_push/imei/{bp.Serialno}";
var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(schedule_push))
{


+ 1
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs Ver arquivo

@@ -58,7 +58,7 @@ namespace HealthMonitor.Service.Resolver
var messageId = _messageId.Value;
var phr = _msgData.Value!;
#region 定时下发触发器
var key = $"health_moniter/schedule_push/pregnancy_heart_rate/imei/{phr.Serialno}";
var key = $"health_monitor/schedule_push/pregnancy_heart_rate/imei/{phr.Serialno}";
var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false);

if (string.IsNullOrWhiteSpace(schedule_push))


+ 2
- 2
HealthMonitor.WebApi/Worker.cs Ver arquivo

@@ -91,7 +91,7 @@ namespace HealthMonitor.WebApi
}, stoppingToken),

Task.Run(() =>
_serviceEtcd.WacthKeysWithPrefixResponseAsync("health_moniter/schedule_push", WatchEvents),
_serviceEtcd.WacthKeysWithPrefixResponseAsync("health_monitor/schedule_push", WatchEvents),
stoppingToken)
};

@@ -119,7 +119,7 @@ namespace HealthMonitor.WebApi
//Console.BackgroundColor = ConsoleColor.Green;
//Console.WriteLine($"--- {e.Type}--{e.Kv.Key.ToStringUtf8()}--{e.Kv.Value.ToStringUtf8()}---{DateTime.Now}");

// var key = $"health_moniter/schedule_push/imei/{bp.Serialno}";
// var key = $"health_monitor/schedule_push/imei/{bp.Serialno}";
var key = e.Kv.Key.ToStringUtf8();
var imeiDel = key.Split('/')[^1];
var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false);


Carregando…
Cancelar
Salvar