diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js index 3ccc838..dfd3193 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js @@ -241,7 +241,7 @@ async function detail (ctx) { ...cameraRes.dataValues, station: bindStations, createUser: { - namePresent: corUser[0].namePresent + namePresent: corUser.length && corUser[0].namePresent ? corUser[0].namePresent : '' } } if (cameraRes.type != 'yingshi') {