Ver Fonte

修复 VideoPostQueryImpl#getVideoPostData 判断逻辑

reghao há 1 ano atrás
pai
commit
47e6462d14

+ 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();
         }