const axios = require'axios')
const baseUrl =
'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=995e97a1xxxxxxxxxxxxxxxxxxx'
async function bookLunch() let result = await axios.post(baseUrl, {
msgtype: 'text',
text: {
content:'大佬,订午餐啦!',
mentioned_list: ['@all']
}
})
return result.data
}
async function bookTaxi() let result = await axios.post(baseUrl, {
msgtype: 'text',
text: {
content:'辛苦了,早点回家休息吧。9点打车可以报销哦。',
mentioned_list: ['@all']
}
})
return result.data
}
async function remindWeeklyReport() let result = await axios.post(baseUrl, {
msgtype: 'text',
text: {
content:'周四了,记得写周报看看你这周有没偷懒!',
mentioned_list: ['@all']
}
})
return result.data
}
async function remindGoHome() {
let result = await axios.post(baseUrl, {
msgtype: 'text',
text: {
content:'11点半了,早点休息吧!'
}
})
return result.data
}
}
}
}
}
}
exports.main = async (event, context) => {
let d = newDate()
let hourGap =
hour += hourGap
returnawait remindWeeklyReport()
}
returnawait bookTaxi()
}
returnawait remindGoHome()
}
return'hi shopee!'
}