This commit is contained in:
tanglong 2025-10-30 19:00:56 +08:00
parent ba608f4ee7
commit 64766b8216

View File

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