Commit 64e037b3 authored by 郝聪敏's avatar 郝聪敏

延长正在投递重试时间;兼容邮箱大小写

parent bf4da932
......@@ -551,7 +551,7 @@ class HomeService extends Service {
ctx.logger.info(sendStatus, '正在投递', sendStatus === '正在投递');
if (sendStatus === '正在投递') {
await mailSendStatusFrame.waitFor(30000);
await mailSendStatusFrame.waitFor(60000);
const clickStatus = await mailSendStatusFrame.$eval('#clickstu', el => el.innerHTML);
if (clickStatus === '[查看详情]') await mailSendStatusFrame.click('#clickstu');
await mailSendStatusFrame.click('#refreshbutton');
......@@ -566,7 +566,8 @@ class HomeService extends Service {
continue;
}
if (!receiver.includes(email)) {
ctx.logger.info(receiver, email, !receiver.includes(email) || !receiver.includes(email.toLowerCase()));
if (!receiver.includes(email) && !receiver.includes(email.toLowerCase())) {
ctx.logger.error('收件箱不一致, 投递失败');
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment