From 77a95087bc5359335e7c9be122de9d20a1be9921 Mon Sep 17 00:00:00 2001 From: imndx Date: Wed, 24 Dec 2025 11:36:46 +0800 Subject: [PATCH] fix build error --- .../java/cn/wildfirechat/push/hm/HMPushServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java b/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java index 316a368..8c298f5 100644 --- a/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java +++ b/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java @@ -107,12 +107,12 @@ public class HMPushServiceImpl implements HMPushService { } if (config.isSupportVoipPush() && (pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_INVITE || pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_BYE)) { - VoipPayload voipPayload = VoipPayload.buildAlertPayload(pushMessage); - String response = httpPost(this.pushUrl, jwt, 10, voipPayload.toString(), 10000, 10000); + RequestBody voipRequestBody = RequestBody.buildVoipRequestBody(pushMessage); + String response = httpPost(this.pushUrl, jwt, 10, voipRequestBody.toString(), 10000, 10000); LOG.info("Push voip message to {} response {}", pushMessage.getDeviceToken(), response); } else { - AlertPayload alertPayload = AlertPayload.buildAlertPayload(pushMessage); - String response = httpPost(this.pushUrl, jwt, 0, alertPayload.toString(), 10000, 10000); + RequestBody alertRequestBody = RequestBody.buildAlertRequestBody(pushMessage); + String response = httpPost(this.pushUrl, jwt, 0, alertRequestBody.toString(), 10000, 10000); LOG.info("Push alert message to {} response {}", pushMessage.getDeviceToken(), response); }