소스 검색

修复 VideoPostQueryImpl#getVideoPostData 判断逻辑

reghao 1 년 전
부모
커밋
47e6462d14
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      content/content-service/src/main/java/cn/reghao/tnb/content/app/vod/service/impl/VideoPostQueryImpl.java

+ 1 - 1
content/content-service/src/main/java/cn/reghao/tnb/content/app/vod/service/impl/VideoPostQueryImpl.java

@@ -192,7 +192,7 @@ public class VideoPostQueryImpl implements VideoPostQuery {
         }
 
         int status = videoPost.getStatus();
-        if (status != VideoStatus.publish.getValue() || status != VideoStatus.noVideoFile.getValue()) {
+        if (status != VideoStatus.publish.getValue() && status != VideoStatus.noVideoFile.getValue()) {
             return WebResult.notFound();
         }