From 9d2299e43c4a94ae3ed767c44d3b86992b550139 Mon Sep 17 00:00:00 2001 From: wenlele Date: Wed, 31 Aug 2022 23:03:33 +0800 Subject: [PATCH] shiyi --- .../client/src/components/videoPlayer/videoPlay.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 96d9573..93f6dea 100644 --- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx +++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx @@ -128,10 +128,18 @@ const VideoPlay = ({ dispatch, actions, if (disappear || duration > 2000) { setVideoMask(true) console.log(numbers); - dispatch(openness.getErrorCode({ status: numbers, platform: videoObj.type})).then((res) => { + dispatch(openness.getErrorCode({ status: numbers, platform: videoObj.type })).then((res) => { console.log(res); if (res.payload.data) { - setWritten(res.payload.data.paraphrase) + if (res.payload.data.paraphraseCustom) { + setWritten(res.payload.data.paraphraseCustom) + } else { + if (res.payload.data.describe) { + setWritten(res.payload.data.describe) + } else { + setWritten('视频异常,问题处理中...') + } + } } else { setWritten('视频异常,问题处理中...') }