Commit ffcc60ae authored by 郝聪敏's avatar 郝聪敏

添加投递失败状态

parent 318738fb
...@@ -550,7 +550,6 @@ class HomeService extends Service { ...@@ -550,7 +550,6 @@ class HomeService extends Service {
let sendStatus = await mailSendStatusFrame.$eval('#statusbtn', el => el.innerHTML); let sendStatus = await mailSendStatusFrame.$eval('#statusbtn', el => el.innerHTML);
const receiver = await mailSendStatusFrame.$eval('.oneline', el => el.innerHTML); const receiver = await mailSendStatusFrame.$eval('.oneline', el => el.innerHTML);
ctx.logger.info(sendStatus, '正在投递', sendStatus === '正在投递');
if (sendStatus === '正在投递') { if (sendStatus === '正在投递') {
await mailSendStatusFrame.waitFor(60000); await mailSendStatusFrame.waitFor(60000);
const clickStatus = await mailSendStatusFrame.$eval('#clickstu', el => el.innerHTML); const clickStatus = await mailSendStatusFrame.$eval('#clickstu', el => el.innerHTML);
...@@ -563,6 +562,9 @@ class HomeService extends Service { ...@@ -563,6 +562,9 @@ class HomeService extends Service {
await mailSendStatusFrame.click('#statusbtn'); await mailSendStatusFrame.click('#statusbtn');
if (sendStatus !== '投递成功') { if (sendStatus !== '投递成功') {
if (sendStatus === '投递失败') {
result.push({ id: mails[i].id, code: 1, msg: '投递失败' });
}
ctx.logger.error(sendStatus || '投递失败'); ctx.logger.error(sendStatus || '投递失败');
continue; 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