From b8eb04d62b21550add424df5412579864c0965d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Fri, 22 Sep 2023 11:36:53 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/schedule/workOrder.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index 5499dbb..d59a0a7 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -6,7 +6,6 @@ const request = require('request'); let isDev = true module.exports = function (app, opts,ctx) { - const workOrder = app.fs.scheduleInit( { interval: '0 * * * *',//一小时执行一次 @@ -68,7 +67,7 @@ module.exports = function (app, opts,ctx) { console.log('formRes1',procinstIds) // 获取流程实例变量 if(formRes && formRes.length > 0){ - let procinstsVariables = await request.post(encodeURI(opts.camWorkflow.host+'/'+opts.camWorkflow.root+`/engine-rest/history/variable-instance`)) + let procinstsVariables = await request.post(encodeURI(opts.camundarest.host+'/'+opts.camundarest.root+`/engine-rest/history/variable-instance`)) .auth(username, password) .set('Content-Type', 'application/json') .send({processInstanceIdIn: procinstIds})