```
const axios \= require('axios')
const schedule \= require('node-schedule')
schedule.scheduleJob({ hour: 22, minute: 08 }, function () {
// 每天6點執行
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: 22, minute: 08 }, function () {
// 每天6點執行
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: 01 }, function () {
// 每天6點執行
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: 01 }, function () {
// 每天6點執行
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: 22, minute: 14 }, function () {
// 每天6點執行
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: 22, minute: 15 }, function () {
// 每天6點執行
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)
? ? ? ? ? ? ? ? ? ? })
? ? ? ? ? ? ? ? })
```