Pārlūkot izejas kodu

调整key命名

datasub12_fetal_heart_rate_0
H Vs pirms 3 mēnešiem
vecāks
revīzija
9195a15063
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      HealthMonitor.Service/Cache/DeviceCacheManager.cs

+ 2
- 2
HealthMonitor.Service/Cache/DeviceCacheManager.cs Parādīt failu

@@ -86,7 +86,7 @@ namespace HealthMonitor.Service.Cache
{
try
{
var key = $"PregnancyHeartRateFreqStatus_{sn}";
var key = $"PhrFreqStatus_{sn}";
var status = await RedisHelper.GetAsync(key).ConfigureAwait(false);
if (string.IsNullOrEmpty(status)) return null;
return JsonConvert.DeserializeObject<PregnancyHeartRateModel>(status);
@@ -102,7 +102,7 @@ namespace HealthMonitor.Service.Cache
{
try
{
var key = $"PregnancyHeartRateFreqStatus_{sn}";
var key = $"PhrFreqStatus_{sn}";
var data=JsonConvert.SerializeObject(status);
await RedisHelper.SetAsync(key, data, expire).ConfigureAwait(false);
}


Notiek ielāde…
Atcelt
Saglabāt