Преглед на файлове

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