LEIYI 1 月之前
父節點
當前提交
6e8a8e4e75
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      OASystem/OASystem.Api/OAMethodLib/APNs/APNsService.cs

+ 1 - 1
OASystem/OASystem.Api/OAMethodLib/APNs/APNsService.cs

@@ -164,7 +164,7 @@ namespace OASystem.API.OAMethodLib.APNs
                 };
                 //var content = new StringContent(JsonSerializerTool.SerializeDefault(notContent), System.Text.Encoding.UTF8, Application.Json);
 
-            var content = new StringContent(System.Text.Json.JsonSerializer.Serialize(notContent));
+                var content = new StringContent(System.Text.Json.JsonSerializer.Serialize(notContent), System.Text.Encoding.UTF8, Application.Json);
 
                 httpRequestMessage.Content = content;