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