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

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

View File

@@ -96,7 +96,7 @@ async function jd_necklace() {
function showMsg() {
return new Promise(async resolve => {
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
if (nowTimes.getHours() >= 20) {
if (nowTimes.getHours() >= 20 && $.totalScore >= 10000) {
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n当前${$.name}${$.totalScore}\n可兑换无门槛红包:${$.totalScore / 1000}\n点击弹窗即可去兑换(注:此红包具有时效性)`, { 'open-url': openUrl});
}
// 云端大于10元无门槛红包时进行通知推送