From 64766b8216f56a35f90268476d6f1965e7d82210 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Thu, 30 Oct 2025 19:00:56 +0800 Subject: [PATCH] sss --- YD_AllHeartRates.Api/Services/Impl/DataPushService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs b/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs index 3680db5..42c64e6 100644 --- a/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs +++ b/YD_AllHeartRates.Api/Services/Impl/DataPushService.cs @@ -248,7 +248,7 @@ namespace YD_AllHeartRates.Api.Services.Impl string bodyEncrypted; try { - bodyEncrypted = DataEncryptHelper.EncryptSm2Zip(jsonPlain, AppSettings.DataPush.PublicKey); + bodyEncrypted = DataEncryptHelper.EncryptSm2(jsonPlain, AppSettings.DataPush.PublicKey); Console.WriteLine($"[GetStudentEduId] Encrypted BODY (Hex): {bodyEncrypted}"); } catch (Exception ex) @@ -257,7 +257,6 @@ namespace YD_AllHeartRates.Api.Services.Impl throw; } - // 4. 构造 POST 请求 URL string url = $"{AppSettings.DataPush.Hous}oauth2/sportsRoutineReport";