鸿蒙阵推送

back_recharge
jiahuiwen 2022-01-18 09:56:28 +08:00
parent ff3c81bfbe
commit 351909d5f3
2 changed files with 1 additions and 2 deletions

View File

@ -5340,7 +5340,7 @@ public class HeroLogic {
if (judge) {
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.HONGMENG_GET_INFO_RESPONSE_VALUE, hongmengInfoIndication.build(), true);
} else {
if (hongmengInfoIndication.getHongmengGuardsCount() > 0 && hongmengInfoIndication.getHongmengAdditionsCount() > 0 && hongmengInfoIndication.getHongmengResonacnesCount() > 0) {
if (hongmengInfoIndication.getHongmengGuardsCount() > 0 || hongmengInfoIndication.getHongmengAdditionsCount() > 0 || hongmengInfoIndication.getHongmengResonacnesCount() > 0) {
MessageUtil.sendIndicationMessage(session, 1, MessageTypeProto.MessageType.HONGMENG_INFO_INDICATION_VALUE, hongmengInfoIndication.build(), true);
}
}

View File

@ -190,7 +190,6 @@ public class MessageUtil {
byte[] byteBuf = wrappedBuffer(session.getUid(), session.getToken(), indicationIndex,result, msgId, generatedMessage);
session.write(byteBuf,flush);
session.putBackIndicationToMap(indicationIndex,byteBuf);
LOGGER.info("sendIndicationMessage uid={} indication={}", session.getUid(), JsonFormat.printToString(generatedMessage));
}
/**