调整部分脚本通知频率, 运行无京豆不进行通知

This commit is contained in:
lxk0301
2021-02-04 10:04:08 +08:00
parent f81b2b71b5
commit 3cf1c48eff
3 changed files with 10 additions and 5 deletions

View File

@@ -262,7 +262,8 @@ function interact_template_getLotteryResult(taskId,timeout = 0) {
function showMsg() {
message += `任务已完成,本次运行获得京豆${$.beans}`
return new Promise(resolve => {
$.msg($.name, '', `【京东账号${$.index}${$.nickName}\n${message}`);
if ($.beans) $.msg($.name, '', `【京东账号${$.index}${$.nickName}\n${message}`);
$.log(`【京东账号${$.index}${$.nickName}\n${message}`);
resolve()
})
}