明树Git Lab

Commit 888c4a36 authored by zfp1's avatar zfp1

update

parent 824069bd
...@@ -199,9 +199,8 @@ async function getJiankong(req, res, next) { ...@@ -199,9 +199,8 @@ async function getJiankong(req, res, next) {
let smc = await DB.CollectSMC.findOne().sort({time:-1}); let smc = await DB.CollectSMC.findOne().sort({time:-1});
// //
let onlineArr = await deviceModule.getDeviceOnlineMap(); let onlineArr = await deviceModule.getDeviceOnlineMap();
smc.onLineState = onlineArr.includes(smc.deviceNumber) ? 1 : 0; smc.onLineState = onlineArr.includes(smc.deviceNumber) ? "1" : "0";
ws.onLineState = onlineArr.includes(ws.deviceNumber) ? 1 : 0; ws.onLineState = onlineArr.includes(ws.deviceNumber) ? "1" : "0";
ws.onlineArr = onlineArr;
traccode.smc = smc; traccode.smc = smc;
traccode.ws = ws; traccode.ws = ws;
traccode.onlineArr = onlineArr; traccode.onlineArr = onlineArr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment