Skip to content

Commit

Permalink
Update jd_mhtask.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shufflewzc committed Jan 4, 2022
1 parent 401e904 commit fcae2dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jd_mhtask.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ if ($.isNode()) {
}
}
}
if (allMessage) {
if ($.isNode()) await notify.sendNotify(`${$.name}`, `${allMessage}`);
$.msg($.name, '', allMessage);
}
})()
.catch((e) => {
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
Expand Down Expand Up @@ -90,6 +94,7 @@ function showMsg() {
return new Promise(resolve => {
if ($.beans) {
message += `本次运行获得${$.beans}京豆`
allMessage += `京东账号${$.index}-${$.nickName}: 获得【${$.beans}】京豆\n`
$.msg($.name, '', `京东账号${$.index}${$.nickName}\n${message}`);
}
resolve()
Expand Down

0 comments on commit fcae2dd

Please sign in to comment.