|
@ -52,10 +52,8 @@ class Pusher extends RedisModel {
|
|
|
payload.contentAvailable = 1;
|
|
|
payload.category = type;
|
|
|
payload.customMsg.payload1 = customData;
|
|
|
log.error("推送消息对象:"+JSON.stringify(payload));
|
|
|
let template = new APNTemplate();
|
|
|
template.setApnInfo(payload);
|
|
|
|
|
|
let singleMessage = new SingleMessage();
|
|
|
singleMessage.setData(template);
|
|
|
this.gt.pushAPNMessageToSingle(this.getuiConfig.APPID, deviceToken, singleMessage, function (err, res) {
|