mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
parent
e213ec76cb
9cbf0b74b2
fe8ce570e3
7bb0a7b9e9
43b1c94b26
d4c8e30444
6b061f3c74
a65f663ae6
4df44b59eb
793ef4c355
9b9a6538e5
468b1b7db2
f74c0c47fa
054264ec61
b9d0138559
commit
8cc8aac54a
@ -85,7 +85,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
if (!($.st <= nowTs && nowTs < $.ed)) {
|
||||
$.log(`远程红包雨配置获取错误,从本地读取配置`)
|
||||
$.log(`\n`)
|
||||
let hour = new Date().getUTCHours() + 8
|
||||
let hour = (new Date().getUTCHours() + 8) %24
|
||||
if (ids[hour]){
|
||||
$.activityId = ids[hour]
|
||||
$.log(`本地红包雨配置获取成功`)
|
||||
@ -103,7 +103,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
$.index = i + 1;
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
message = `【${new Date($.st).getHours()}点${$.name}】`
|
||||
message = `【${new Date().getUTCHours()+8}点${$.name}】`
|
||||
await TotalBean();
|
||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
if (!$.isLogin) {
|
||||
@ -185,6 +185,7 @@ function receiveRedRain() {
|
||||
message += `领取失败,已领过\n`;
|
||||
} else {
|
||||
console.log(`异常:${JSON.stringify(data)}`)
|
||||
message += `暂无红包雨\n`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user