admin
2024-09-05 8631bb49abe5dfed233bc579a228c578232f8079
src/main/java/com/yeshi/buwan/util/JuHe/VideoResourceUtil.java
@@ -4,6 +4,7 @@
import com.yeshi.buwan.service.imp.DetailSystemConfigService;
import com.yeshi.buwan.service.inter.video.VideoResourcePlayVersionMapService;
import com.yeshi.buwan.service.inter.video.VideoResourceVersionMapService;
import com.yeshi.buwan.util.Constant;
import com.yeshi.buwan.util.config.SystemConfigUtil;
import com.yeshi.buwan.videos.funtv.FunTVUtil;
import net.sf.json.JSONObject;
@@ -36,13 +37,14 @@
//        }
        ridList.remove(25+"");
        ridList.remove(28+"");
        //TODO 没有上线需要清除
        ridList.add(FunTVUtil.RESOURCE_ID+"");
        //是否是首次上线
        String firstOnLineValue =  detailSystemConfigService.getConfigValueByKey("first_online_versions",detailSystem.getId(), versionCode);
        if( SystemConfigUtil.isFirstOnLine(firstOnLineValue, channel, versionCode)){
            // 首次上线要打开风行
            ridList.add(FunTVUtil.RESOURCE_ID+"");
        if(Constant.IS_HAVE_FIRST_ONLINE) {
            ridList.add(FunTVUtil.RESOURCE_ID + "");
            //是否是首次上线
            String firstOnLineValue =  detailSystemConfigService.getConfigValueByKey("first_online_versions",detailSystem.getId(), versionCode);
            if( SystemConfigUtil.isFirstOnLine(firstOnLineValue, channel, versionCode)){
                // 首次上线要打开风行
                ridList.add(FunTVUtil.RESOURCE_ID+"");
            }
        }
        //韩剧上线的时候需要打开
//        if(detailSystem.getId().equalsIgnoreCase("51")){
@@ -72,11 +74,12 @@
//            ridList.add("28");
//        }
        // 首次上线要打开风行
        //TODO 没有上线需要清除
        ridList.add(FunTVUtil.RESOURCE_ID+"");
        String firstOnLineValue =  detailSystemConfigService.getConfigValueByKey("first_online_versions",detailSystem.getId(), versionCode);
        if( SystemConfigUtil.isFirstOnLine(firstOnLineValue, channel, versionCode)){
            ridList.add(FunTVUtil.RESOURCE_ID+"");
        if(Constant.IS_HAVE_FIRST_ONLINE) {
            ridList.add(FunTVUtil.RESOURCE_ID + "");
            String firstOnLineValue = detailSystemConfigService.getConfigValueByKey("first_online_versions", detailSystem.getId(), versionCode);
            if (SystemConfigUtil.isFirstOnLine(firstOnLineValue, channel, versionCode)) {
                ridList.add(FunTVUtil.RESOURCE_ID + "");
            }
        }
        List<Long> ids = new ArrayList<>();