|
@ -3,7 +3,7 @@ const schedule = require('node-schedule'); |
|
|
const moment = require('moment') |
|
|
const moment = require('moment') |
|
|
const request = require('superagent'); |
|
|
const request = require('superagent'); |
|
|
|
|
|
|
|
|
let isDev = true |
|
|
let isDev = false |
|
|
|
|
|
|
|
|
module.exports = function (app, opts,ctx) { |
|
|
module.exports = function (app, opts,ctx) { |
|
|
const workOrder = app.fs.scheduleInit( |
|
|
const workOrder = app.fs.scheduleInit( |
|
@ -15,7 +15,7 @@ module.exports = function (app, opts,ctx) { |
|
|
async()=>{ |
|
|
async()=>{ |
|
|
try{ |
|
|
try{ |
|
|
//前一次执行时间
|
|
|
//前一次执行时间
|
|
|
console.log('工单数据抽取开始') |
|
|
console.log('工单数据抽取开始',moment().format('YYYY-MM-DD HH:mm:ss')) |
|
|
const username = "admin" |
|
|
const username = "admin" |
|
|
const password = "fs-workflow" |
|
|
const password = "fs-workflow" |
|
|
let lastExecutionTime = null; |
|
|
let lastExecutionTime = null; |
|
|