TASK: 试用邮件通知权限变更
This commit is contained in:
@@ -141,11 +141,11 @@ public class MyTaskScheduler {
|
|||||||
String fileName = "trialOrder-" + yesterday.format(DateTimeFormatter.ofPattern("yyyyMMdd")) + ".xlsx";
|
String fileName = "trialOrder-" + yesterday.format(DateTimeFormatter.ofPattern("yyyyMMdd")) + ".xlsx";
|
||||||
try (FileOutputStream fileOut = new FileOutputStream(fileName)) {
|
try (FileOutputStream fileOut = new FileOutputStream(fileName)) {
|
||||||
workbook.write(fileOut);
|
workbook.write(fileOut);
|
||||||
SendEmailUtil.sendExcelEmail("1023316923@qq.com", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
// SendEmailUtil.sendExcelEmail("1023316923@qq.com", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("calvinwong@aidlab.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
SendEmailUtil.sendExcelEmail("calvinwong@aidlab.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("kaicpang.pang@connect.polyu.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
SendEmailUtil.sendExcelEmail("kaicpang.pang@connect.polyu.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("kimwong@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
SendEmailUtil.sendExcelEmail("kimwong@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("ningning@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
// SendEmailUtil.sendExcelEmail("ningning@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("johnnyho@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
SendEmailUtil.sendExcelEmail("johnnyho@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("ringolau@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
SendEmailUtil.sendExcelEmail("ringolau@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
SendEmailUtil.sendExcelEmail("chelseayu@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
SendEmailUtil.sendExcelEmail("chelseayu@code-create.com.hk", null, Files.readAllBytes(Paths.get(fileName)), fileName);
|
||||||
@@ -154,11 +154,11 @@ public class MyTaskScheduler {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
SendEmailUtil.sendNoExcelEmail("1023316923@qq.com", null);
|
// SendEmailUtil.sendNoExcelEmail("1023316923@qq.com", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("calvinwong@aidlab.hk", null);
|
SendEmailUtil.sendNoExcelEmail("calvinwong@aidlab.hk", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("kaicpang.pang@connect.polyu.hk", null);
|
SendEmailUtil.sendNoExcelEmail("kaicpang.pang@connect.polyu.hk", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("kimwong@code-create.com.hk", null);
|
SendEmailUtil.sendNoExcelEmail("kimwong@code-create.com.hk", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("ningning@code-create.com.hk", null);
|
// SendEmailUtil.sendNoExcelEmail("ningning@code-create.com.hk", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("johnnyho@code-create.com.hk", null);
|
SendEmailUtil.sendNoExcelEmail("johnnyho@code-create.com.hk", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("ringolau@code-create.com.hk", null);
|
SendEmailUtil.sendNoExcelEmail("ringolau@code-create.com.hk", null);
|
||||||
SendEmailUtil.sendNoExcelEmail("chelseayu@code-create.com.hk", null);
|
SendEmailUtil.sendNoExcelEmail("chelseayu@code-create.com.hk", null);
|
||||||
|
|||||||
@@ -693,7 +693,6 @@ public class SendEmailUtil {
|
|||||||
|
|
||||||
public static void uploadTimeoutReminder(String userName, String time) {
|
public static void uploadTimeoutReminder(String userName, String time) {
|
||||||
String xp = "xupei3360@163.com";
|
String xp = "xupei3360@163.com";
|
||||||
String shb = "shahaibodd99@gmail.com";
|
|
||||||
String wxd = "X1627315083@163.com";
|
String wxd = "X1627315083@163.com";
|
||||||
String pkc = "kaicpang.pang@connect.polyu.hk";
|
String pkc = "kaicpang.pang@connect.polyu.hk";
|
||||||
try {
|
try {
|
||||||
@@ -712,7 +711,7 @@ public class SendEmailUtil {
|
|||||||
// 实例化一个请求对象,每个接口都会对应一个request对象
|
// 实例化一个请求对象,每个接口都会对应一个request对象
|
||||||
SendEmailRequest req = new SendEmailRequest();
|
SendEmailRequest req = new SendEmailRequest();
|
||||||
req.setFromEmailAddress(SEND_ADDRESS);
|
req.setFromEmailAddress(SEND_ADDRESS);
|
||||||
req.setDestination(new String[]{shb, xp, wxd, pkc});
|
req.setDestination(new String[]{xp, wxd, pkc});
|
||||||
Template template = new Template();
|
Template template = new Template();
|
||||||
req.setSubject("上传图片超时提醒");
|
req.setSubject("上传图片超时提醒");
|
||||||
template.setTemplateID(UPLOAD_TIMEOUT_REMINDER);
|
template.setTemplateID(UPLOAD_TIMEOUT_REMINDER);
|
||||||
|
|||||||
@@ -1640,7 +1640,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
List<String> a = new ArrayList<>();
|
List<String> a = new ArrayList<>();
|
||||||
a.add("1023316923@qq.com");
|
// a.add("1023316923@qq.com");
|
||||||
a.add("Malinyuquan@gmail.com");
|
a.add("Malinyuquan@gmail.com");
|
||||||
|
|
||||||
if (a.contains("malinyuquan@gmail.com")) {
|
if (a.contains("malinyuquan@gmail.com")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user