日志打印

This commit is contained in:
tanglong 2025-07-21 10:20:26 +08:00
parent 7bcd598b17
commit d02f695e79
2 changed files with 2 additions and 1 deletions

View File

@ -423,6 +423,7 @@ namespace YD_AllHeartRates.Api.Mqtt
catch (Exception ex)
{
_log.LogWarning(ex, "SyncTodayJumpDataToDbAsync数据同步错误。");
}
}

View File

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