fix build error
This commit is contained in:
@@ -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)) {
|
if (config.isSupportVoipPush() && (pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_INVITE || pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_BYE)) {
|
||||||
VoipPayload voipPayload = VoipPayload.buildAlertPayload(pushMessage);
|
RequestBody voipRequestBody = RequestBody.buildVoipRequestBody(pushMessage);
|
||||||
String response = httpPost(this.pushUrl, jwt, 10, voipPayload.toString(), 10000, 10000);
|
String response = httpPost(this.pushUrl, jwt, 10, voipRequestBody.toString(), 10000, 10000);
|
||||||
LOG.info("Push voip message to {} response {}", pushMessage.getDeviceToken(), response);
|
LOG.info("Push voip message to {} response {}", pushMessage.getDeviceToken(), response);
|
||||||
} else {
|
} else {
|
||||||
AlertPayload alertPayload = AlertPayload.buildAlertPayload(pushMessage);
|
RequestBody alertRequestBody = RequestBody.buildAlertRequestBody(pushMessage);
|
||||||
String response = httpPost(this.pushUrl, jwt, 0, alertPayload.toString(), 10000, 10000);
|
String response = httpPost(this.pushUrl, jwt, 0, alertRequestBody.toString(), 10000, 10000);
|
||||||
LOG.info("Push alert message to {} response {}", pushMessage.getDeviceToken(), response);
|
LOG.info("Push alert message to {} response {}", pushMessage.getDeviceToken(), response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user