| | |
| | | * 获取系统配置信息
|
| | | *
|
| | | * @param acceptData
|
| | | * @param code
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping("getSystemClientConfig")
|
| | |
| | | public void getUserConfig(WXMPAcceptData acceptData, PrintWriter out) {
|
| | | try {
|
| | | // 用户协议链接
|
| | | String serviceProtocol = configService.get(ConfigKeyEnum.serviceProtocolLink.getKey());
|
| | | String serviceProtocol = configService.getValue(ConfigKeyEnum.serviceProtocolLink.getKey(),acceptData.getSystem());
|
| | | // 隐私条款链接
|
| | | String privacyProtocol = configService.get(ConfigKeyEnum.privacyProtocolLink.getKey());
|
| | | String privacyProtocol = configService.getValue(ConfigKeyEnum.privacyProtocolLink.getKey(),acceptData.getSystem());
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("serviceProtocolLink", serviceProtocol);
|
| | | data.put("privacyProtocolLink", privacyProtocol);
|
| | |
|
| | | // 我的界面banner
|
| | | List<BannerVO> banner = swiperPictureService.getByBannerCardAndVersion("my_interface_banner",
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem());
|
| | | if (banner == null)
|
| | | banner = new ArrayList<BannerVO>();
|
| | | data.put("banner", JsonUtil.getApiCommonGson().toJson(banner));
|