1 Star 0 Fork 0

taobk/tbk.task

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
app.js 671 Bytes
Copy Edit Raw Blame History
maoxgo authored 2016-11-09 20:42 . lao wang
const task = require('./lib/task')
const schedule = require("node-schedule")
const REFRESH_TIME = 1000 * 60 * 2
const request = require('superagent')
// setInterval(function () {
// console.log('start')
// task()
// }, REFRESH_TIME)
//更新订单
schedule.scheduleJob('*/2 * * * *', function () {
task()
})
//更新accessToken
schedule.scheduleJob('*/10 * * * *', () => {
request
.get('http://wx.qtmm.cn/accessToken/reset')
.end((err, res) => {
if(err) console.error(err)
console.log(res.body)
})
})
//老王
schedule.scheduleJob('*/1 * * * * *', () => {
request
.get('http://qtmm.cn/ds.asp')
.end((err, res) => {
})
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/taobk/tbk.task.git
git@gitee.com:taobk/tbk.task.git
taobk
tbk.task
tbk.task
master

Search