免费不发送邮件

back_recharge
lvxinran 2021-04-27 13:40:09 +08:00
parent c9580f6ba4
commit 21973c02d6
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ public class BuyGoodsNewLogic {
resultRes.setResultCode(1);
//发送邮件
int[] mail = config.getMail();
if(mail!=null&&mail.length>1){
if(config.getPrice()!=0&&mail!=null&&mail.length>1){
String title = SErrorCodeEerverConfig.getI18NMessage(SErrorCodeEerverConfig.errorMap.get(mail[0]).getkey());
String content = SErrorCodeEerverConfig.getI18NMessageNeedConvert(SErrorCodeEerverConfig.errorMap.get(mail[1]).getkey(), new Object[]{config.getName()}, new int[]{1}, "#");
MailLogic.getInstance().sendMail(uid,title,content,"",(int) (TimeUtils.now() / 1000),Global.MAIL_EFFECTIVE_TIME);