TASK:检查令牌日志注释;
This commit is contained in:
@@ -355,7 +355,9 @@ public class SendEmailUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final static Long UPGRADE_NOTIFICATION_ID = 118855L;
|
private final static Long UPGRADE_NOTIFICATION_ID = 118855L;
|
||||||
|
private final static Long UPGRADE_SUCCESS_NOTIFICATION_ID = 118856L;
|
||||||
private final static Long UPGRADE_NOTIFICATION_ID_CHINESE = 122898L;
|
private final static Long UPGRADE_NOTIFICATION_ID_CHINESE = 122898L;
|
||||||
|
private final static Long UPGRADE_SUCCESS_NOTIFICATION_ID_CHINESE = 122899L;
|
||||||
public static void sendUpgradeNotification(Account account, String senderAddress, Integer type) {
|
public static void sendUpgradeNotification(Account account, String senderAddress, Integer type) {
|
||||||
try {
|
try {
|
||||||
// 实例化一个认证对象
|
// 实例化一个认证对象
|
||||||
@@ -375,12 +377,19 @@ public class SendEmailUtil {
|
|||||||
// 根据邮件类型设置不同的主题和模板
|
// 根据邮件类型设置不同的主题和模板
|
||||||
String subject = "";
|
String subject = "";
|
||||||
Template template = new Template();
|
Template template = new Template();
|
||||||
|
// if (type == 1) {
|
||||||
|
// subject = "Upcoming System Upgrade for AiDA 3.0";
|
||||||
|
// template.setTemplateID(UPGRADE_NOTIFICATION_ID);
|
||||||
|
// }else {
|
||||||
|
// subject = "即将到来的AiDA 3.0系统升级";
|
||||||
|
// template.setTemplateID(UPGRADE_NOTIFICATION_ID_CHINESE);
|
||||||
|
// }
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
subject = "Upcoming System Upgrade for AiDA 3.0";
|
subject = "Successful System Upgrade and New Features in AiDA 3.0";
|
||||||
template.setTemplateID(UPGRADE_NOTIFICATION_ID);
|
template.setTemplateID(UPGRADE_SUCCESS_NOTIFICATION_ID);
|
||||||
}else {
|
}else {
|
||||||
subject = "即将到来的AiDA 3.0系统升级";
|
subject = "系统升级成功和AiDA 3.0新功能";
|
||||||
template.setTemplateID(UPGRADE_NOTIFICATION_ID_CHINESE);
|
template.setTemplateID(UPGRADE_SUCCESS_NOTIFICATION_ID_CHINESE);
|
||||||
}
|
}
|
||||||
template.setTemplateData(buildAccountData(account));
|
template.setTemplateData(buildAccountData(account));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user