Formatting.None

This commit is contained in:
tanglong 2025-10-30 18:49:51 +08:00
parent 8ac4636984
commit bd25c905c1
8 changed files with 4 additions and 4 deletions

View File

@ -235,7 +235,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
string jsonPlain; string jsonPlain;
try try
{ {
jsonPlain = JsonConvert.SerializeObject(package); jsonPlain = JsonConvert.SerializeObject(package, Formatting.None);
Console.WriteLine($"[GetStudentEduId] Package JSON: {jsonPlain}"); Console.WriteLine($"[GetStudentEduId] Package JSON: {jsonPlain}");
} }
catch (Exception ex) catch (Exception ex)
@ -248,7 +248,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
string bodyEncrypted; string bodyEncrypted;
try try
{ {
bodyEncrypted = DataEncryptHelper.EncryptSm2Zip(jsonPlain, AppSettings.DataPush.PublicKey); bodyEncrypted = DataEncryptHelper.EncryptSm2(jsonPlain, AppSettings.DataPush.PublicKey);
Console.WriteLine($"[GetStudentEduId] Encrypted BODY (Hex): {bodyEncrypted}"); Console.WriteLine($"[GetStudentEduId] Encrypted BODY (Hex): {bodyEncrypted}");
} }
catch (Exception ex) catch (Exception ex)

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_AllHeartRates.Api")] [assembly: System.Reflection.AssemblyCompanyAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c381307d15b1587759e7acb844e2c82bdc0ddbc3")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8ac46369843b435230a2414ab53e80b5fb784e66")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_AllHeartRates.Api")] [assembly: System.Reflection.AssemblyProductAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_AllHeartRates.Api")] [assembly: System.Reflection.AssemblyTitleAttribute("YD_AllHeartRates.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
2dba6fada29eced24317ad0534ce36b4fd36949ef0e3e70ca50cc9ffd4a90385 7fea93f1de01629b5f51626fb77a40dd1a6503c6b7b421f4480e748aa6734cb8