Browse Source

shiyi

release_1.3.0
wenlele 2 years ago
parent
commit
9d2299e43c
  1. 12
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

12
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

@ -128,10 +128,18 @@ const VideoPlay = ({ dispatch, actions,
if (disappear || duration > 2000) { if (disappear || duration > 2000) {
setVideoMask(true) setVideoMask(true)
console.log(numbers); 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); console.log(res);
if (res.payload.data) { 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 { } else {
setWritten('视频异常,问题处理中...') setWritten('视频异常,问题处理中...')
} }

Loading…
Cancel
Save