forked from 77media/video-flow
修复错误
This commit is contained in:
parent
41f9f228b3
commit
f89f142e8c
@ -1,9 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com
|
# NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com
|
||||||
NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com
|
# NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com
|
||||||
|
# NEXT_PUBLIC_CUT_URL = https://smartcut.movieflow.ai
|
||||||
|
NEXT_PUBLIC_JAVA_URL = https://auth.movieflow.ai
|
||||||
|
NEXT_PUBLIC_BASE_URL = https://api.video.movieflow.ai
|
||||||
NEXT_PUBLIC_CUT_URL = https://smartcut.movieflow.ai
|
NEXT_PUBLIC_CUT_URL = https://smartcut.movieflow.ai
|
||||||
# NEXT_PUBLIC_JAVA_URL = https://test.java.movieflow.ai
|
|
||||||
# NEXT_PUBLIC_BASE_URL = https://test.video.movieflow.ai
|
|
||||||
# 失败率
|
# 失败率
|
||||||
NEXT_PUBLIC_ERROR_CONFIG = 0.1
|
NEXT_PUBLIC_ERROR_CONFIG = 0.1
|
||||||
@ -61,15 +61,15 @@ const WorkFlow = React.memo(function WorkFlow() {
|
|||||||
description: 'Performing intelligent editing...',
|
description: 'Performing intelligent editing...',
|
||||||
successDescription: 'Editing successful',
|
successDescription: 'Editing successful',
|
||||||
timeoutDescription: 'Editing failed. Please click the edit button to go to the smart editing platform.',
|
timeoutDescription: 'Editing failed. Please click the edit button to go to the smart editing platform.',
|
||||||
timeout: 5 * 60 * 1000,
|
timeout: 8 * 60 * 1000,
|
||||||
key: editingNotificationKey.current,
|
key: editingNotificationKey.current,
|
||||||
onFail: () => {
|
onFail: () => {
|
||||||
console.log('Editing failed');
|
console.log('Editing failed');
|
||||||
// 清缓存 生成计划 视频重新分析
|
// 清缓存 生成计划 视频重新分析
|
||||||
localStorage.removeItem(`isLoaded_plan_${episodeId}`);
|
localStorage.removeItem(`isLoaded_plan_${episodeId}`);
|
||||||
setEditingStatus('error');
|
|
||||||
// 3秒后关闭通知
|
// 3秒后关闭通知
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
setEditingStatus('error');
|
||||||
if (editingNotificationKey.current) {
|
if (editingNotificationKey.current) {
|
||||||
notification.destroy(editingNotificationKey.current);
|
notification.destroy(editingNotificationKey.current);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -449,7 +449,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
)}
|
)}
|
||||||
{/* 生成失败 */}
|
{/* 生成失败 */}
|
||||||
{taskObject.videos.data[currentSketchIndex].video_status === 2 && (
|
{taskObject.videos.data[currentSketchIndex].video_status === 2 && (
|
||||||
<div className="absolute inset-0 bg-red-500/10 flex items-center justify-center">
|
<div className="absolute inset-0 bg-red-500/5 flex items-center justify-center">
|
||||||
<div
|
<div
|
||||||
className="text-[#813b9dcc] text-2xl font-bold flex items-center gap-2"
|
className="text-[#813b9dcc] text-2xl font-bold flex items-center gap-2"
|
||||||
>
|
>
|
||||||
@ -603,7 +603,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{currentSketch.status === 2 && (
|
{currentSketch.status === 2 && (
|
||||||
<div className="absolute inset-0 bg-red-500/10 flex items-center justify-center">
|
<div className="absolute inset-0 bg-red-500/5 flex items-center justify-center">
|
||||||
<div className="text-[#813b9dcc] text-2xl font-bold flex items-center gap-2">
|
<div className="text-[#813b9dcc] text-2xl font-bold flex items-center gap-2">
|
||||||
<CircleAlert className="w-10 h-10" />
|
<CircleAlert className="w-10 h-10" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -197,7 +197,7 @@ export function ThumbnailGrid({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{taskObject.videos.data[index].video_status === 2 && (
|
{taskObject.videos.data[index].video_status === 2 && (
|
||||||
<div className="absolute inset-0 bg-red-500/10 flex items-center justify-center z-20">
|
<div className="absolute inset-0 bg-red-500/5 flex items-center justify-center z-20">
|
||||||
<div className="text-[#813b9dcc] text-xl font-bold flex items-center gap-2">
|
<div className="text-[#813b9dcc] text-xl font-bold flex items-center gap-2">
|
||||||
<RotateCcw className="w-10 h-10" />
|
<RotateCcw className="w-10 h-10" />
|
||||||
</div>
|
</div>
|
||||||
@ -281,7 +281,7 @@ export function ThumbnailGrid({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{sketch.status === 2 && (
|
{sketch.status === 2 && (
|
||||||
<div className="absolute inset-0 bg-red-500/10 flex items-center justify-center">
|
<div className="absolute inset-0 bg-red-500/5 flex items-center justify-center">
|
||||||
<div className="text-[#813b9dcc] text-xl font-bold flex items-center gap-2">
|
<div className="text-[#813b9dcc] text-xl font-bold flex items-center gap-2">
|
||||||
<CircleAlert className="w-10 h-10" />
|
<CircleAlert className="w-10 h-10" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user