admin
2019-10-09 5965a68eb95797f5527f12ef59925e262e410cc5
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java
@@ -77,13 +77,16 @@
   private UserActiveLogService userActiveLogService;
   /**
    * 首页配置信息
    * s 首页配置信息
    * 
    * @param acceptData
    * @param out
    */
   @RequestMapping(value = "getHomeConfig", method = RequestMethod.POST)
   public void getHomeConfig(AcceptData acceptData, Long uid, PrintWriter out) {
      if (uid != null && uid == 0L)
         uid = null;
      AppHomeFloatImg appHomeFloatImg = configService.getAppHomeFloatImg();
      if ("ios".equalsIgnoreCase(acceptData.getPlatform()) && !Constant.IS_TEST) {
         appHomeFloatImg = null;
@@ -151,7 +154,8 @@
      } else {// 老人
         data.put("userTimeType", 1);
      }
      data.put("hotFuctionLink", configService.get("hot_function_url"));
      data.put("hotFuctionLink",
            configService.getByVersion("hot_function_url", platform, Integer.parseInt(acceptData.getVersion())));//
      out.print(JsonUtil.loadTrueResult(data));
   }
@@ -279,7 +283,8 @@
         data.put("serviceProtocolLink", serviceProtocol);
         data.put("privacyProtocolLink", privacyProtocol);
         // 购物车跳转方式(包含jumpDetail与params)
         JSONObject source = JSONObject.fromObject(configService.get("taobao_cart_jump_detail"));
         JSONObject source = JSONObject.fromObject(configService.getByVersion("taobao_cart_jump_detail",
               acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion())));
         data.put("taoBaoCart", source);
         out.print(JsonUtil.loadTrueResult(data));
      } catch (Exception e) {
@@ -345,7 +350,19 @@
                  "android".equalsIgnoreCase(acceptData.getPlatform()) ? 1 : 2);
         }
      });
   }
   /**
    * 获取邀请码帮助链接
    *
    * @param acceptData
    * @param out
    */
   @RequestMapping(value = "getInviteCodeInputHelp", method = RequestMethod.POST)
   public void getInviteCodeInputHelp(AcceptData acceptData, PrintWriter out) {
      JSONObject data = new JSONObject();
      data.put("helpUrl", configService.get("invite_code_input_help"));
      out.print(JsonUtil.loadTrueResult(data));
   }
}