新礼包推送

back_recharge
mengchengzhen 2021-04-28 00:16:35 +08:00
parent 2cfe67afe4
commit 3a5f1a07aa
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public class BuyGoodsNewLogic {
List<CommonProto.GiftGoodsInfo> goodsBagInfo = new ArrayList<>(SRechargeCommodityNewConfig.configMap.size());
boolean needChange = getGoodsBagInfo(uid, goodsBagInfo);
ISession session = OnlineUserManager.getSessionByUid(uid);
if(session!=null && needChange){
if(session!=null){
PlayerInfoProto.AllGiftGoodsIndication build = PlayerInfoProto.AllGiftGoodsIndication.newBuilder().addAllGiftGoodsInfo(goodsBagInfo).build();
MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.ALL_GIFTGOODS_INDICATION_VALUE,build,true);
}