From 37a23bc1d007b1efb08082cea57ecbce974da202 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 15 Sep 2022 11:34:43 +0800 Subject: [PATCH] =?UTF-8?q?corUser[0].namePresent=20=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {