From b5e19564dcbf1b7ec12946209d74313479f9dfe1 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 24 十二月 2021 19:51:31 +0800
Subject: [PATCH] 布丸vivo上架兼容

---
 src/main/java/com/yeshi/buwan/controller/parser/ConfigParser.java |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/parser/ConfigParser.java b/src/main/java/com/yeshi/buwan/controller/parser/ConfigParser.java
index df8131e..359599b 100644
--- a/src/main/java/com/yeshi/buwan/controller/parser/ConfigParser.java
+++ b/src/main/java/com/yeshi/buwan/controller/parser/ConfigParser.java
@@ -160,7 +160,7 @@
     public void getConfig(AcceptData acceptData, HttpServletRequest request, PrintWriter out) {
         LoggerUtil.getUserActiveLogger().info(UserActiveLogFactory.createAppSplash(new BaseLog(acceptData, "")));
         DetailSystem detailSystem = systemService.getDetailSystemByPackage(acceptData.getPackageName());
-        Map<String, String> map = configService.getConfigAsMap(detailSystem, acceptData.getVersion());
+        Map<String, String> map = configService.getConfigAsMap(acceptData.getChildDetailSystem(), acceptData.getVersion());
         JSONObject data = new JSONObject();
         JSONObject ad = new JSONObject();
         JSONObject adNew = new JSONObject();
@@ -253,12 +253,34 @@
             adConfig = null;
         adNew.put("splashHotStart", gson.toJson(adConfig));
 
+        //棣栭〉鎻掑睆
+        adConfig = getAdShowType("home_ad_interstitial", acceptData.getChannel(), acceptData.getVersion(), map);
+        if (hiddenAll)
+            adConfig = null;
+        adNew.put("homeInterstitial", gson.toJson(adConfig));
+
+        //搴旂敤閫�鍑哄叏灞�
+        adConfig = getAdShowType("ad_exit_app_fullvideo", acceptData.getChannel(), acceptData.getVersion(), map);
+        if (hiddenAll)
+            adConfig = null;
+        adNew.put("exitAppFullvideo", gson.toJson(adConfig));
+
+
+
         //鍏朵粬骞垮憡
         adConfig = getAdShowType("ad_other", acceptData.getChannel(), acceptData.getVersion(), map);
         if (hiddenAll)
             adConfig = null;
         adNew.put("other", gson.toJson(adConfig));
 
+        //骞垮憡ID
+        if (!StringUtil.isNullOrEmpty(map.get("gdt_app_id"))) {
+            adNew.put("gdtAppId", map.get("gdt_app_id"));
+        }
+
+        if (!StringUtil.isNullOrEmpty(map.get("csj_app_id"))) {
+            adNew.put("csjAppId", map.get("csj_app_id"));
+        }
 
         data.put("ad", ad);
         data.put("adNew", adNew);
@@ -273,6 +295,12 @@
         //鑾峰彇璐拱璁板綍閾炬帴
         data.put("buyRecordUrl", systemConfigService.getConfigValueByKeyCache("buyRecordUrl"));
 
+        //鑱旂郴鎴戜滑
+        data.put("contactUsLink", map.get("contact_us_link"));
+        //娉ㄩ攢
+        data.put("unRegisterLink", map.get("unregister_link"));
+
+
         out.print(JsonUtil.loadTrueJson(data.toString()));
     }
 

--
Gitblit v1.8.0