| | |
| | | String value = systemConfigService.getValueCache(acceptData.getSystem(), config); |
| | | data.put(config.name(), value); |
| | | } |
| | | //返回正在上线的版本 |
| | | try { |
| | | String value = systemConfigService.getValueCache(acceptData.getSystem(), SystemConfigKey.onLiningVersion); |
| | | JSONObject json = JSONObject.fromObject(value); |
| | | String channel = acceptData.getChannel(); |
| | | if (json.optJSONObject(channel.toLowerCase()) == null) { |
| | | channel = "qq"; |
| | | } |
| | | json = json.optJSONObject(channel.toLowerCase()); |
| | | int onliningVersion = json.optInt("version"); |
| | | if (onliningVersion <= acceptData.getVersion()) { |
| | | //正在上线 |
| | | data.put("onLining", true); |
| | | } else { |
| | | //尚未上线 |
| | | data.put("onLining", false); |
| | | } |
| | | } catch (Exception e) { |
| | | data.put("onLining", false); |
| | | } |
| | | |
| | | SystemConfigKey[] ads = new SystemConfigKey[]{ |
| | | SystemConfigKey.splashAd, |