From d02f695e7964901c6d7688ff833a0ebf62d6f5e5 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Mon, 21 Jul 2025 10:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs | 1 + YD_AllHeartRates.Api/Services/Impl/DeviceService.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs b/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs index aa8cf83..d7e8584 100644 --- a/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs +++ b/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs @@ -423,6 +423,7 @@ namespace YD_AllHeartRates.Api.Mqtt catch (Exception ex) { + _log.LogWarning(ex, "SyncTodayJumpDataToDbAsync:数据同步错误。"); } } diff --git a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs index 6261d4e..18a1be0 100644 --- a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs +++ b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs @@ -262,7 +262,7 @@ namespace YD_AllHeartRates.Api.Services.Impl Code = data.Code, StudentNo = data.StudentNo, DeviceType = data.DeviceType, - Name = data.DeviceType == 1 ? "心率" : "跳绳" + Name = data.DeviceType == 1 ? "心率设备" : "跳绳设备" }); } await _sportsContext.AddRangeAsync(deviceList);