|
@@ -5,11 +5,11 @@ namespace OASystem.API.OAMethodLib.APNs
|
|
|
{
|
|
|
private static readonly IAPNsService _APNsService = AutofacIocManager.Instance.GetService<IAPNsService>();
|
|
|
|
|
|
- public static bool pushMsg(string apnsTopic, string deviceToken, NotificationType type, string title, string subtitle, string body)
|
|
|
+ public static async Task<Result> pushMsg(string apnsTopic, string deviceToken, NotificationType type, string title, string subtitle, string body)
|
|
|
{
|
|
|
- _APNsService.PushNotification(apnsTopic, deviceToken, type, title, subtitle, body);
|
|
|
+ Result rst = await _APNsService.PushNotification(apnsTopic, deviceToken, type, title, subtitle, body);
|
|
|
|
|
|
- return true;
|
|
|
+ return rst;
|
|
|
}
|
|
|
}
|
|
|
}
|