定时任务改为查询3天内的所有审批消息

This commit is contained in:
zhl 2023-05-09 15:18:09 +08:00
parent a5b840e0a6
commit 19c2828192

View File

@ -332,10 +332,10 @@ export class WechatWorkService {
return { filename: filePath }
}
// 查询审批列表
public async queryTasks() {
public async queryTasks(begin: number = 0) {
const url = `${WX_API_HOST}/cgi-bin/oa/getapprovalinfo`
const access_token = await this.getAccessToken()
let starttime = (timeBeforeDay(7) / 1000) | 0
let starttime = (timeBeforeDay(3) / 1000) | 0
// if (!this.timePre) {
// let timeStr = await new RedisClient().get('qywx_time_cache')
// if (timeStr) {