发送红包奖励改为邮件

back_recharge
lvxinran 2020-01-14 18:01:15 +08:00
parent 78d7016e7e
commit 38e9b4ef3b
1 changed files with 7 additions and 2 deletions

View File

@ -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);
}