From 38e9b4ef3b359072e20d79f5937cc861f89f1419 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Tue, 14 Jan 2020 18:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E7=BA=A2=E5=8C=85=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E6=94=B9=E4=B8=BA=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/logic/store/BuyGoodsLogic.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsLogic.java index c0e4e1cf3..9b4907829 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsLogic.java @@ -247,8 +247,7 @@ public class BuyGoodsLogic { MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.ALL_GIFTGOODS_INDICATION_VALUE,build,true); } } - //发送直购事件 - Poster.getPoster().dispatchEvent(new BuyGoodsDirectEvent(uid,goodsId)); + }else{ String title = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_title"); @@ -256,6 +255,12 @@ public class BuyGoodsLogic { if(type== 3 || type==1 || type==6){ content = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_txt",new Object[]{rewardStr.split("#")[1]}); } + if(type==10){ + //红包事件 + Poster.getPoster().dispatchEvent(new BuyGoodsDirectEvent(uid,goodsId)); + title = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_title",new Object[]{sRechargeCommodityConfig.getName()}); + content = SErrorCodeEerverConfig.getI18NMessage("recharge_" + sRechargeCommodityConfig.getType() + "_txt",new Object[]{sRechargeCommodityConfig.getName()}); + } MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr,nowTime, Global.MAIL_EFFECTIVE_TIME); }