TASK:AiDA workshop活动;

This commit is contained in:
shahaibo
2024-10-08 13:17:55 +08:00
parent c27ca77717
commit d9118aaf93
2 changed files with 69 additions and 16 deletions

View File

@@ -719,8 +719,8 @@ public class SendEmailUtil {
}
}
private final static Long HALFPRICEPROMOTION_CN_ID = 128556L;
private final static Long HALFPRICEPROMOTION_EN_ID = 128557L;
private final static Long HALFPRICEPROMOTION_CN_ID = 128582L;
private final static Long HALFPRICEPROMOTION_EN_ID = 128583L;
public static void halfPricePromotion(Account account, String senderAddress, int type) {
try {
// 实例化一个认证对象
@@ -748,10 +748,10 @@ public class SendEmailUtil {
// template.setTemplateID(UPGRADE_NOTIFICATION_ID_CHINESE);
// }
if (type == 1) {
subject = "AiDA Limited Time Offer";
subject = "AiDA workshop - Win a trip to Hong Kong";
template.setTemplateID(HALFPRICEPROMOTION_EN_ID);
}else {
subject = "AiDA国庆优惠活动";
subject = "AiDA workshop - 赢取香港之旅";
template.setTemplateID(HALFPRICEPROMOTION_CN_ID);
}
template.setTemplateData(buildAccountData(account));