admin
2020-06-01 4d66b80a56cca390a0d06cc5bc5a9d8c8f790ff8
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ConfigControllerV2.java
@@ -572,7 +572,6 @@
         out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(data)));
   }
   
   @RequestMapping(value = "getKouBeiLink")
   public void getKouBeiLink(AcceptData acceptData, Long uid, String activityId, boolean share, boolean shareImg,
         String callback, PrintWriter out) {
@@ -659,7 +658,28 @@
   public void userProtocolListen(AcceptData acceptData, Long uid, int type, PrintWriter out) {
      LogHelper.userProtocolListen(String.format("%s#%s#%s", acceptData.getDevice(), uid, type));
      out.print(JsonUtil.loadTrueResult(""));
   }
   /**
    * 是否显示广告
    * @Title: showAd
    * @Description:
    * @param acceptData
    * @param uid
    * @param out
    * void 返回类型
    * @throws
    */
   @RequestMapping(value = "getShowAd")
   public void showAd(AcceptData acceptData, Long uid, PrintWriter out) {
      String value = configService.get(ConfigKeyEnum.showSplashAd.getKey());
      JSONObject data = new JSONObject();
      if ("0".equalsIgnoreCase(value.trim())) {
         data.put("show", false);
      } else {
         data.put("show", true);
      }
      out.print(JsonUtil.loadTrueResult(data));
   }
}