jiangjc 1 month ago
parent
commit
e7796ae9f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      OASystem/OASystem.Api/OAMethodLib/APNs/APNsService.cs

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

@@ -142,7 +142,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;