From e2fbe02055ffc70d326f22e1dfe2d43f81047513 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Thu, 30 Oct 2025 18:53:40 +0800 Subject: [PATCH] sportsRoutineReport --- YD_AllHeartRates.Api/Services/Impl/DataPushService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs b/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs index 8a643f1..d386338 100644 --- a/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs +++ b/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs @@ -235,7 +235,7 @@ namespace YD_AllHeartRates.Api.Services.Impl string jsonPlain; try { - jsonPlain = JsonConvert.SerializeObject(package, Formatting.None); + jsonPlain = JsonConvert.SerializeObject(package, Formatting.None); Console.WriteLine($"[GetStudentEduId] Package JSON: {jsonPlain}"); } catch (Exception ex) @@ -248,7 +248,7 @@ namespace YD_AllHeartRates.Api.Services.Impl string bodyEncrypted; try { - bodyEncrypted = DataEncryptHelper.EncryptSm2(jsonPlain, AppSettings.DataPush.PublicKey); + bodyEncrypted = DataEncryptHelper.EncryptSm2Zip(jsonPlain, AppSettings.DataPush.PublicKey); Console.WriteLine($"[GetStudentEduId] Encrypted BODY (Hex): {bodyEncrypted}"); } catch (Exception ex) @@ -259,7 +259,7 @@ namespace YD_AllHeartRates.Api.Services.Impl // 4. 构造 POST 请求 URL - string url = $"{AppSettings.DataPush.Hous}oauth2/getStudentEduId"; + string url = $"{AppSettings.DataPush.Hous}oauth2/sportsRoutineReport"; // 5. 发送 POST 请求 string responseText;