admin
2021-04-03 32d6c2ea8039b4771fd6b1ded8b022733e32352f
src/main/java/com/yeshi/buwan/controller/parser/ConfigParser.java
@@ -55,7 +55,7 @@
    public ADConfig getAdShowType(String key, String channel, int version, Map<String, String> map) {
        String splash = map.get(key);
        JSONObject jsonObject = JSONObject.fromObject(splash);
        if (jsonObject == null||jsonObject.isEmpty())
        if (jsonObject == null || jsonObject.isEmpty())
            return null;
        ADConfig adConfig = null;
        channel = channel.toLowerCase();
@@ -216,13 +216,20 @@
            adConfig = null;
        adNew.put("pptvNoAdReward", gson.toJson(adConfig));
        //热启动开屏
        adConfig = getAdShowType("ad_splash_hot_start", acceptData.getChannel(), acceptData.getVersion(), map);
        if (hiddenAll)
            adConfig = null;
        adNew.put("splashHotStart", gson.toJson(adConfig));
        data.put("ad", ad);
        data.put("adNew", adNew);
        //PPTV免广告权益时长,暂时设置为3小时
        data.put("pptvNoAdRewardHour", 3);
        //设置网页加速域名
        data.put("webSpeedUpHost", map.get("web_speed_up_host"));
        data.put("minePageBanner", map.get("mine_page_banner"));
        out.print(JsonUtil.loadTrueJson(data.toString()));
    }