添加日志等
This commit is contained in:
@@ -87,14 +87,14 @@ public class HMPushServiceImpl implements HMPushService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_INVITE || pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_INVITE) {
|
if (pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_INVITE || pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_VOIP_BYE) {
|
||||||
VoipPayload voipPayload = VoipPayload.buildAlertPayload(pushMessage);
|
VoipPayload voipPayload = VoipPayload.buildAlertPayload(pushMessage);
|
||||||
String response = httpPost(this.pushUrl, jwt, 10, voipPayload.toString(), 10000, 10000);
|
String response = httpPost(this.pushUrl, jwt, 10, voipPayload.toString(), 10000, 10000);
|
||||||
LOG.info("Voip Push to {} response {}", pushMessage.getDeviceToken(), response);
|
LOG.info("Push voip message to {} response {}", pushMessage.getDeviceToken(), response);
|
||||||
} else {
|
} else {
|
||||||
AlertPayload alertPayload = AlertPayload.buildAlertPayload(pushMessage);
|
AlertPayload alertPayload = AlertPayload.buildAlertPayload(pushMessage);
|
||||||
String response = httpPost(this.pushUrl, jwt, 0, alertPayload.toString(), 10000, 10000);
|
String response = httpPost(this.pushUrl, jwt, 0, alertPayload.toString(), 10000, 10000);
|
||||||
LOG.info("Push to {} response {}", pushMessage.getDeviceToken(), response);
|
LOG.info("Push alert message to {} response {}", pushMessage.getDeviceToken(), response);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IOException e) {
|
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user