Browse Source

萤石告警返回萤石token

dev
巴林闲侠 2 years ago
parent
commit
6d0054c2b1
  1. 12
      api/app/lib/controllers/alarm/video.js

12
api/app/lib/controllers/alarm/video.js

@ -89,6 +89,7 @@ async function alarmList (ctx) {
camera_status.describe AS statusDescribe,
camera_status_resolve.resolve AS resolve,
"gbCamera".online AS cameraOnline,
secret_yingshi.token AS yingshiToken,
anxinIpc.t_video_ipc.name AS anxinIpcPosition,
anxinStation.id AS anxinStationId,
anxinStation.name AS anxinStationName,
@ -102,6 +103,7 @@ async function alarmList (ctx) {
camera.name AS cameraName,
camera.kind_id AS cameraKindId,
camera.vender_id AS venderId,
camera.yingshi_secret_id AS yingshiSecretId,
vender.name AS venderName,
camera_status_alarm.id AS alarmId,
camera_status_alarm.create_time AS createTime,
@ -112,9 +114,9 @@ async function alarmList (ctx) {
camera_status_alarm.channel_no AS cameraChannelNo,
camera_status_alarm.confirm AS confirmContent,
${
//' camera_status_alarm.auto_restore AS autoRestore,'
''
}
//' camera_status_alarm.auto_restore AS autoRestore,'
''
}
camera_status_alarm.confirm_time AS confirmTime
FROM camera_status_alarm
@ -147,6 +149,8 @@ async function alarmList (ctx) {
ON camera_status_resolve.status_id = camera_status.id
LEFT JOIN "gbCamera"
ON "gbCamera".id = cameraAlarm.gbId
LEFT JOIN "secret_yingshi"
ON "secret_yingshi".id = cameraAlarm.yingshiSecretId
LEFT JOIN ${anxinyun}.t_video_ipc AS anxinIpc
ON toString(anxinIpc.channel_no) = cameraAlarm.cameraChannelNo
@ -192,6 +196,7 @@ async function alarmList (ctx) {
camerOnline: a.cameraOnline,
cameraSerialNo: a.cameraSerialNo,
cameraChannelNo: a.cameraChannelNo,
autoRestore: a.autoRestore,
createTime: a.createTime,
updateTime: a.updateTime,
platform: a.platform,
@ -203,6 +208,7 @@ async function alarmList (ctx) {
venderId: a.venderId,
venderName: a.venderName,
cameraKindId: a.cameraKindId,
yingshiToken: a.yingshiToken,
resolve: [],
struc: [],

Loading…
Cancel
Save