diff --git a/.env.production b/.env.production index d01d62e..6b07f89 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,10 @@ -# NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com -# NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com -# NEXT_PUBLIC_CUT_URL = https://smartcut.huiying.video -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_JAVA_URL = https://77.app.java.auth.qikongjian.com +NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com +NEXT_PUBLIC_CUT_URL = https://smartcut.huiying.video +# 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_ERROR_CONFIG = 0.2 \ No newline at end of file diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index 76ef54f..acd7d94 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -68,6 +68,13 @@ const LauguageOptions = [ { value: "indonesian", label: "Indonesian", isVip: false, code:'ID' } ] +const VideoDurationOptions = [ + { value: "8s", label: "8s" }, + { value: "1min", label: "1min" }, + { value: "2min", label: "2min" }, + { value: "unlimited", label: "unlimited" }, +]; + /**模板故事模式弹窗组件 */ /** * 防抖函数 @@ -127,7 +134,7 @@ export function ChatInputBox({ noData }: { noData: boolean }) { mode: "auto", resolution: "720p", language: "english", - videoDuration: "1min", + videoDuration: "unlimited", expansion_mode: true, }); @@ -280,7 +287,7 @@ export function ChatInputBox({ noData }: { noData: boolean }) { {/* 第二行:功能按钮和Action按钮 - 同一行 */}
{/* 左侧功能按钮区域 */} -
+
{/* 获取创意按钮 -
+
{/* 仅在未选中时显示背景色,避免覆盖选中态 */} -
+
onConfigChange('expansion_mode', checked)} />
- + {configOptions.expansion_mode ? 'On' : 'Off'}
+ + {/* 分隔线 */} +
+ + {/* 时长选择 */} + ({ + key: option.value, + label: ( +
+ {option.label} +
+ ), + })), + onClick: ({ key }) => onConfigChange('videoDuration', key as string), + }} + trigger={["click"]} + placement="top" + > + +
{/* 右侧Action按钮 */}