|
|
|
@ -353,11 +353,7 @@ public class MessagePushRecordServiceImpl extends BaseServiceImpl<MessagePushRec
|
|
|
|
|
this.updateById(record); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
if(pushService.send(record)) { |
|
|
|
|
record.setStatus(MessageConstants.PUSH_SUCCESS); |
|
|
|
|
record.setPushTime(LocalDateTime.now()); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
if(!pushService.send(record)) { |
|
|
|
|
record.setStatus(MessageConstants.PUSH_FAILED); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -413,7 +409,6 @@ public class MessagePushRecordServiceImpl extends BaseServiceImpl<MessagePushRec
|
|
|
|
|
if(MessageConstants.APP_PUSH.equals(record.getType())) { |
|
|
|
|
// APP消息存入redis中进行消费
|
|
|
|
|
this.sendAppImmediatelyMsg(record,request.isEmergent()); |
|
|
|
|
redisTemplate.opsForList().leftPush(appPushRedisKey.concat(":").concat(record.getPusher()), record); |
|
|
|
|
} else if (MessageConstants.WS_PUSH.equals(record.getType())) { |
|
|
|
|
// WEB消息调用接口直接进行推送
|
|
|
|
|
if(wsMessageService.send(record)) { |
|
|
|
|