From 379fdfd7073968caec67d2f9e37defd4cc5756a5 Mon Sep 17 00:00:00 2001 From: wenlele Date: Wed, 31 Aug 2022 22:40:50 +0800 Subject: [PATCH] paraphrase --- code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js | 3 ++- .../web/client/src/components/videoPlayer/videoPlay.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js b/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js index 32c1f74..2df763e 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js @@ -219,7 +219,7 @@ async function resolveEdit (ctx) { console.log('err.name', error.name); console.log('err.message', error.message); console.log('err.errors', error.errors); - + ctx.status = 400; ctx.body = {} } @@ -243,6 +243,7 @@ async function statusCheck (ctx) { include: [{ model: models.CameraStatusResolve, attributes: { exclude: ['statusId'] }, + required: false, }], }) diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx index 07385b0..96d9573 100644 --- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx +++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx @@ -131,7 +131,7 @@ const VideoPlay = ({ dispatch, actions, dispatch(openness.getErrorCode({ status: numbers, platform: videoObj.type})).then((res) => { console.log(res); if (res.payload.data) { - setWritten(res.payload.data.describe) + setWritten(res.payload.data.paraphrase) } else { setWritten('视频异常,问题处理中...') }