This commit is contained in:
parent
bcff4b759c
commit
5db16f9a30
|
|
@ -286,6 +286,7 @@ public class SubscribeMessageRequest
|
|||
/// </summary>
|
||||
public class TemplateDataItem
|
||||
{
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string Value { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user