diff --git a/code/VideoAccess-VCMP/api/.vscode/launch.json b/code/VideoAccess-VCMP/api/.vscode/launch.json index 4c543c3..d2b588d 100644 --- a/code/VideoAccess-VCMP/api/.vscode/launch.json +++ b/code/VideoAccess-VCMP/api/.vscode/launch.json @@ -23,8 +23,8 @@ "--godUrl https://restapi.amap.com/v3", "--godKey 21c2d970e1646bb9a795900dd00093ce", "--mqttVideoServer mqtt://10.8.30.71:30883", - // "--iotVideoServerUrl http://221.230.55.27:8081", - "--iotVideoServerUrl http://10.8.30.59:8080", + "--iotVideoServerUrl http://221.230.55.27:8081", + // "--iotVideoServerUrl http://10.8.30.59:8080", "--cameraPlayWsHost ws://221.230.55.27:8081", "--cameraPlayHttpFlvHost http://221.230.55.27:2020", "--cameraPlayHlsHost http://221.230.55.27:8081", diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/create.js b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/create.js index 54f4254..f6394c9 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/create.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/create.js @@ -120,7 +120,11 @@ async function getNvrSteam (ctx) { attributes: ['id', 'name', 'serialNo', 'cloudControl'], where: { nvrId: nvrRes.id - } + }, + include: [{ + model: models.CameraRemark, + attributes: ['remark'] + }], }) const cameraRes = await getGbCameraLevel3ByStreamId({ streamId }) @@ -417,7 +421,11 @@ async function getCascadeSteam (ctx) { attributes: ['id', 'name', 'serialNo'], where: { serialNo: { $in: allStreamid } - } + }, + include: [{ + model: models.CameraRemark, + attributes: ['remark'] + }], }) for (let c of cameraRes) {