浏览代码

调整 key 名称

datasub12_fetal_heart_rate_0
H Vs 3 个月前
父节点
当前提交
4d027e3a66
共有 3 个文件被更改,包括 4 次插入4 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存