From fd517afa1272600077bdb2b1d71bd9253528afd8 Mon Sep 17 00:00:00 2001 From: imndx Date: Wed, 30 Oct 2024 20:44:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=B8=BF=E8=92=99=20voip=20?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java b/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java index 48555ab..d87dabb 100644 --- a/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java +++ b/src/main/java/cn/wildfirechat/push/hm/HMPushServiceImpl.java @@ -87,7 +87,7 @@ public class HMPushServiceImpl implements HMPushService { return null; } - if (config.isSupportVoipPush() && pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_INVITE || pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_BYE) { + 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); LOG.info("Push voip message to {} response {}", pushMessage.getDeviceToken(), response);