File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/(default)/playground/widgets Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ interface Props {
3434 videoId : string ;
3535}
3636
37- const MAX_VIDEO_MIN_LENGTH = 20 * 60 ; //20分钟
37+ const MAX_VIDEO_MIN_LENGTH = 60 * 60 ; //60分钟
3838
3939const InputVideo : React . FC < Props > = ( { onFinish, videoId } ) => {
4040 const [ messageApi , contextHolder ] = message . useMessage ( ) ;
@@ -65,8 +65,8 @@ const InputVideo: React.FC<Props> = ({ onFinish, videoId }) => {
6565 ResponseMessageEnum . videoTooLong ,
6666 ) ;
6767 if ( isVideoTooLong ) {
68- addLogEvent ( '远程下载失败:视频超过20分钟限制 ' ) ;
69- messageApi . error ( '下载失败,视频超过20分钟限制 ' ) ;
68+ addLogEvent ( '远程下载失败:视频超过60分钟限制 ' ) ;
69+ messageApi . error ( '下载失败,视频超过60分钟限制 ' ) ;
7070 } else {
7171 addLogEvent ( '远程下载视频失败' ) ;
7272 messageApi . error ( '下载失败,请重试' ) ;
@@ -263,8 +263,8 @@ const InputVideo: React.FC<Props> = ({ onFinish, videoId }) => {
263263 const isVideoCanUpload =
264264 timeDuration < MAX_VIDEO_MIN_LENGTH ;
265265 if ( ! isVideoCanUpload ) {
266- addLogEvent ( '远程上传失败:视频超过20分钟限制 ' ) ;
267- messageApi . error ( '上传失败,视频超过20分钟限制 ' ) ;
266+ addLogEvent ( '远程上传失败:视频超过60分钟限制 ' ) ;
267+ messageApi . error ( '上传失败,视频超过60分钟限制 ' ) ;
268268 }
269269 return isVideoCanUpload || Upload . LIST_IGNORE ;
270270 } catch {
You can’t perform that action at this time.
0 commit comments