任务执行异常时 ,增加通知提醒

This commit is contained in:
lxk0301
2021-03-29 10:37:26 +08:00
parent 4885b4871b
commit 9210d66a08
3 changed files with 10 additions and 2 deletions

View File

@@ -141,6 +141,9 @@ async function jdPet() {
}
} catch (e) {
$.logErr(e)
const errMsg = `京东账号${$.index} ${$.nickName || $.UserName}\n任务执行异常,请检查执行日志 ‼️‼️`;
if ($.isNode()) await notify.sendNotify(`${$.name}`, errMsg);
$.msg($.name, '', `京东账号${$.index} ${$.nickName || $.UserName}\n${errMsg}`)
}
}
// 收取所有好感度