jiangjc 1 mēnesi atpakaļ
vecāks
revīzija
e7796ae9f8

+ 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;