Browse Source

调整 key 名称

datasub12_fetal_heart_rate_0
H Vs 3 months ago
parent
commit
4d027e3a66
3 changed files with 4 additions and 4 deletions
  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 View File

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


#region 定时下发触发器 #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); var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(schedule_push)) if (string.IsNullOrWhiteSpace(schedule_push))
{ {


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

@@ -58,7 +58,7 @@ namespace HealthMonitor.Service.Resolver
var messageId = _messageId.Value; var messageId = _messageId.Value;
var phr = _msgData.Value!; var phr = _msgData.Value!;
#region 定时下发触发器 #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); var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false);


if (string.IsNullOrWhiteSpace(schedule_push)) if (string.IsNullOrWhiteSpace(schedule_push))


+ 2
- 2
HealthMonitor.WebApi/Worker.cs View File

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


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


@@ -119,7 +119,7 @@ namespace HealthMonitor.WebApi
//Console.BackgroundColor = ConsoleColor.Green; //Console.BackgroundColor = ConsoleColor.Green;
//Console.WriteLine($"--- {e.Type}--{e.Kv.Key.ToStringUtf8()}--{e.Kv.Value.ToStringUtf8()}---{DateTime.Now}"); //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 key = e.Kv.Key.ToStringUtf8();
var imeiDel = key.Split('/')[^1]; var imeiDel = key.Split('/')[^1];
var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false); var schedule_push = await _serviceEtcd.GetValAsync(key).ConfigureAwait(false);


Loading…
Cancel
Save