明树Git Lab

Commit 2d7b823e authored by zengfanpei's avatar zengfanpei

update

parent 13c2a6c0
......@@ -44,7 +44,7 @@ async function collectDeviceInfo3({ deviceHQType }) {
handleDeviceThreshold(obj);
}
// 4. 处理设备在线状态
handleDeviceOnLine({deviceNumber: obj.deviceNumber, online: obj.onLineState}); //onLineState 1在线0离线
handleDeviceOnLine({deviceNumber: obj.deviceNumber, online: Number(obj.onLineState)}); //onLineState 1在线0离线
} else {
//出错
// handleDeviceOnLine({deviceNumber: obj.deviceNumber, online: 0}); //onLineState 1在线0离线
......
......@@ -42,7 +42,7 @@ async function insertHQDevice(datas, deviceHQType) {
// 获取设备的在线状态
async function getDeviceOnlineMap () {
let ioRedis = require('../db/redis')
// let ioRedis = require('../db/redis')
let onlineArr = await ioRedis.hkeys('device_online');
return 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