```
const axios \= require('axios')
const schedule \= require('node-schedule')
const moment \= require('moment')
const {isWorkday,isHoliday} \= require('holidays-cn')
schedule.scheduleJob({ hour: 12, minute: 02 }, function () {
if(isWorkday(moment().format('YYYY-MM-DD'))){
axios
.post('https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=8b37c272-5840-4ff9-becf-5d66ca7b5713', {
msgtype: 'markdown',
markdown: {
content: `【打卡提醒】打中午卡!!!`,
},
})
.then(response \=> {
console.log( response.data)
})
.catch(error \=> {
console.log( error)
})
}})
schedule.scheduleJob({ hour: 12, minute: 52 }, function () {
if(isWorkday(moment().format('YYYY-MM-DD'))){
axios
.post('https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=8b37c272-5840-4ff9-becf-5d66ca7b5713', {
msgtype: 'markdown',
markdown: {
content: `【打卡提醒】打中午卡了吗!!!`,
},
})
.then(response \=> {
console.log( response.data)
})
.catch(error \=> {
console.log( error)
})
}})
schedule.scheduleJob({ hour: 18, minute: 25 }, function () {
if(isWorkday(moment().format('YYYY-MM-DD'))){
axios
.post('https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=8b37c272-5840-4ff9-becf-5d66ca7b5713', {
msgtype: 'markdown',
markdown: {
content: `【打卡提醒】下班啦,打卡打卡!!!`,
},
})
.then(response \=> {
console.log( response.data)
})
.catch(error \=> {
console.log( error)
})
}})
```