修复邮箱回复 会回复谷歌官方邮件

This commit is contained in:
lingling 2024-08-25 18:25:07 +08:00
parent 720df836d2
commit aa4f2a6b0a
2 changed files with 12 additions and 9 deletions

View File

@ -99,12 +99,12 @@ $(function () {
//函数队列
let queue = [];
// queue.push(play_finance);//好像js注入不进去
// queue.push(shopping);
// queue.push(calendar);
// queue.push(mail);
// queue.push(play_google);
// queue.push(news_google);
// queue.push(youtube_shorts);
queue.push(shopping);
queue.push(calendar);
queue.push(mail);
queue.push(play_google);
queue.push(news_google);
queue.push(youtube_shorts);
//当前执行的队列索引
let closed_index = 0;

View File

@ -304,11 +304,14 @@ async function mail(r, id) {
mails[index].click();
RandomIntscrollBy();
await delay(getRandomInt(1, 5));
// console.log(mails_is_google[index].children[4].children[1].children[0].children[0].getAttribute("email"))
//获取邮件发送人
let mail_for = mails_is_google[index].find('.yP')[0].attr("email")
let mail_for = mails_is_google[index].children[4].children[1].children[0].children[0].getAttribute("email")
//是否回复
let whether_or_not_to_reply_to= searchStringContainsArrayKeywords(mail_for,['google','youtube'])
let whether_or_not_to_reply_to= searchStringContainsArrayKeywords(mail_for,['google','youtube','gbcloud'])
//逻辑取反
whether_or_not_to_reply_to=!whether_or_not_to_reply_to
console.log(`当前邮件发送人:${mail_for} 是否回复${whether_or_not_to_reply_to}`)
//邮箱回复
if (getRandomInt(0, 1) == 0&&whether_or_not_to_reply_to) {