admin
2022-06-17 2d88839407045d9f483cf2ab4aed149a59e22df4
app/src/main/java/com/yeshi/makemoney/app/controller/client/api/ConfigController.java
@@ -52,6 +52,26 @@
            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,