2121
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
zpc 2026-03-29 21:46:40 +08:00
parent bcff4b759c
commit 5db16f9a30
2 changed files with 4 additions and 0 deletions

View File

@ -286,6 +286,7 @@ public class SubscribeMessageRequest
/// </summary>
public class TemplateDataItem
{
[System.Text.Json.Serialization.JsonPropertyName("value")]
public string Value { get; set; } = string.Empty;
}

View File

@ -466,6 +466,9 @@ public class WeChatService : IWeChatService
}
var jsonContent = System.Text.Json.JsonSerializer.Serialize(requestBody);
_logger.LogInformation("发送服务号模板消息请求: ToUser={ToUser}, TemplateId={TemplateId}, Body={Body}",
request.ToUser, request.TemplateId, jsonContent);
var httpRequest = new HttpRequestMessage(HttpMethod.Post, url)
{
Content = new StringContent(jsonContent, Encoding.UTF8, "application/json")