This commit is contained in:
lxk0301
2020-11-10 17:49:29 +08:00
parent 8709e0811d
commit 788bd8c3b1
3 changed files with 6 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ if ($.isNode()) {
}
const JD_API_HOST = 'https://rdcseason.m.jd.com/api/';
const activeEndTime = '2020/11/13 01:00:00';
const activeEndTime = '2020/11/13 01:00:00+08:00';
const addUrl = 'http://jd.turinglabs.net/helpcode/create/';
const printUrl = `http://jd.turinglabs.net/helpcode/print/20/`;
let helpCode = []
@@ -74,8 +74,6 @@ let helpCode = []
if ($.isNode()) await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
continue
}
message = '';
subTitle = '';
await JD818();
// await getHelp();
// await doHelp();
@@ -906,7 +904,8 @@ function TotalBean() {
})
}
async function showMsg() {
if (Date.now() > new Date(activeEndTime).getTime()) {
let nowTime = new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000;
if (nowTime > new Date(activeEndTime).getTime()) {
$.msg($.name, '活动已结束', `该活动累计获得京豆:${$.jbeanCount}\niOS用户请删除此脚本\ngithub action用户请删除.github/workflows/jd_818.yml文件\n如果帮助到您可以点下🌟STAR鼓励我一下,谢谢\n咱江湖再见\nhttps://github.com/lxk0301/jd_scripts`, {"open-url": "https://github.com/lxk0301/jd_scripts"});
if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `请删除此脚本\ngithub action用户请删除.github/workflows/jd_818.yml文件\n如果帮助到您可以点下🌟STAR鼓励我一下,谢谢\n咱江湖再见\n https://github.com/lxk0301/jd_scripts`)
} else {