From bb2a59a20b806a91986466e8ae471a07b0cfefc1 Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 3 Nov 2023 17:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=9511?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/routes/organization/index.js | 12 ++++++++++-- api/app/lib/schedule/workorder_statistics.js | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/api/app/lib/routes/organization/index.js b/api/app/lib/routes/organization/index.js index 2649028..c9d4879 100644 --- a/api/app/lib/routes/organization/index.js +++ b/api/app/lib/routes/organization/index.js @@ -5,6 +5,11 @@ const data = require('../../controllers/bigScreen/index '); module.exports = function (app, router, opts) { try { + + app.fs.api.logAttr['get/pump/station'] = { content: '获取所有站点信息', visible: true }; + router.get('/pump/station', data.getPumpStation); + + app.fs.api.logAttr['POST/axyData'] = { content: '获取安心云数据', visible: true }; router.post('/axyData', data.axyData); @@ -13,9 +18,12 @@ module.exports = function (app, router, opts) { app.fs.api.logAttr['get/videoUrl'] = { content: '获取视频监控url', visible: true }; router.get('/videoUrl', data.getVideoUrl); + + console.log('获取视频监控url'); - app.fs.api.logAttr['get/pump/station'] = { content: '获取所有站点信息', visible: true }; - router.get('/pump/station', data.getPumpStation); + + + console.log('获取所有站点信息'); app.fs.api.logAttr['get/water/level/all'] = { content: '获取所有泵站七天内最新集水池液位', visible: true }; diff --git a/api/app/lib/schedule/workorder_statistics.js b/api/app/lib/schedule/workorder_statistics.js index 8e59cec..8ed8635 100644 --- a/api/app/lib/schedule/workorder_statistics.js +++ b/api/app/lib/schedule/workorder_statistics.js @@ -11,7 +11,7 @@ module.exports = function (app, opts) { const workorderStatistics = app.fs.scheduleInit( { interval: '00 */30 * * * *', - immediate: isDev, + immediate: true, proRun: !isDev, // disabled: true, },