mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-22 03:19:55 +08:00
refactor(openai): 重新实现请求加密 XML 序列化的方式
This commit is contained in:
@@ -112,7 +112,7 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI
|
||||
using var fileContent = new ByteArrayContent(request.FileBytes ?? Array.Empty<byte>());
|
||||
using var paramContent = new StringContent(
|
||||
Utilities.WxMsgCryptor.AESEncrypt(
|
||||
plainText: Utilities.XmlUtility.Serialize(request),
|
||||
plainText: Utilities.XmlUtility.ConvertFromJson(client.JsonSerializer.Serialize(request)),
|
||||
encodingAESKey: client.Credentials.EncodingAESKey!,
|
||||
appId: client.Credentials.AppId!
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user