TASK【ID1006397】【活动优化】成长礼金活动邮件删除

back_recharge
zhangshanxue 2020-06-17 14:48:46 +08:00
parent c9f8fe8099
commit cad5b5bc26
1 changed files with 6 additions and 1 deletions

View File

@ -90,6 +90,8 @@ public class BuyGoodsLogic {
}
int price =sRechargeCommodityConfig.getPrice();
buyCount=buyCount+1;
//time check
int limit = sRechargeCommodityConfig.getLimit();
int type = sRechargeCommodityConfig.getType();
if(limit!=0){
@ -311,7 +313,10 @@ public class BuyGoodsLogic {
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);
if(!rewardStr.isEmpty()){
MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr,nowTime, Global.MAIL_EFFECTIVE_TIME);
}
}
if(sRechargeCommodityConfig.getTime() ==5){
rechargeInfo.updateRefreshMapByKey(sRechargeCommodityConfig.getId(),TimeUtils.now()+sRechargeCommodityConfig.getDailyUpdate()*TimeUtils.DAY);