优化
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# 直播红包雨(2020.12.12活动过期)
|
||||
0 0,9,11,13,15,17,19,20,21,23 * * * node /scripts/jd_live_redrain.js |ts >> /scripts/logs/jd_live_redrain.log 2>&1
|
||||
# 数码加购京豆(2020.12.11活动过期)
|
||||
8 0 * * * node /scripts/jd_digital_floor.js |ts >> /scripts/logs/jd_digital_floor.log 2>&1
|
||||
8 0 * * * node /scripts/jd_digital_floor.js |ts >> /scripts/logs/jd_digital_floor.log 2>&1
|
||||
##############长期活动##############
|
||||
|
||||
# 签到
|
||||
|
@@ -102,6 +102,7 @@ function getRedRain() {
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
if (data.data.iconArea) {
|
||||
let act = data.data.iconArea[0]
|
||||
let url = data.data.iconArea[0].data.activityUrl
|
||||
$.activityId = url.substr(url.indexOf("id=") + 3)
|
||||
@@ -109,6 +110,9 @@ function getRedRain() {
|
||||
$.endTime = act.endTime
|
||||
console.log(`下一场红包雨开始时间:${new Date(act.startTime)}`)
|
||||
console.log(`下一场红包雨结束时间:${new Date(act.endTime)}`)
|
||||
} else {
|
||||
console.log(`暂无红包雨`)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
Reference in New Issue
Block a user