فهرست منبع

update VideoPostQueryImpl

reghao 10 ماه پیش
والد
کامیت
36bfc0c490

+ 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")) {