소스 검색

update VideoPostQueryImpl

reghao 10 달 전
부모
커밋
36bfc0c490
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      content/content-service/src/main/java/cn/reghao/tnb/content/app/vod/service/impl/VideoPostServiceImpl.java

+ 2 - 2
content/content-service/src/main/java/cn/reghao/tnb/content/app/vod/service/impl/VideoPostServiceImpl.java

@@ -116,10 +116,10 @@ public class VideoPostServiceImpl implements VideoPostService {
                 int postStatus = VideoStatus.censor.getValue();
                 videoPost = new VideoPost(videoId, videoPublishSbt, coverUrl, videoFile, postStatus, publishAt);
 
-                long duration = publishAt-System.currentTimeMillis();
+                /*long duration = publishAt-System.currentTimeMillis();
                 if (duration < 600_000) {
                     return Result.fail("定时发布的时间至少应在 10 分钟后");
-                }
+                }*/
             }
 
             if (!videoInfo.getFormatName().contains("mov,mp4")) {