From a2742e4c223b8ffb76b43491cff1eb4e82a3f087 Mon Sep 17 00:00:00 2001 From: zhengpengju Date: Fri, 11 Mar 2022 17:22:49 +0800 Subject: [PATCH] fix upload url --- admin/src/pages/course/option/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/src/pages/course/option/index.tsx b/admin/src/pages/course/option/index.tsx index bb7de51..22f48a4 100644 --- a/admin/src/pages/course/option/index.tsx +++ b/admin/src/pages/course/option/index.tsx @@ -480,7 +480,7 @@ const CourseList: React.FC = () => { fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。 sources: [ { - src: (currentRow?.attachment_json?.url) || '/dsideal_yy/html/down/M3u8/2D/2D99BF1D-2F37-47FB-8A24-45112A236B8F.mp4', // 测试地址后续请删除 + src: (currentRow?.attachment_json?.url) || '/dsideal_yy/html/down/Syzx/3b/3b225da8-87a5-4619-82a4-664ae2b37e23.mp4', // 测试地址后续请删除 type: 'application/x-mpegURL' } ], @@ -573,7 +573,7 @@ const CourseList: React.FC = () => { await handleAdd({ ...values, //course_id: currentRow?.course_id, - attachment_json: `{"img":"", "name": "${values.attachment_json.file.name}", "url": "down/M3u8/${uuid?.substr(0, 2)}/${uuid}.m3u8"}` + attachment_json: `{"img":"", "name": "${values.attachment_json.file.name}", "url": "down/Syzx/${uuid?.substr(0, 2)}/${uuid}.mp4"}` }); handleCreateModalVisible(false); // 隐藏创建窗口 actionRef.current?.reloadAndRest?.();