#
Junjie
7 天以前 7d6921a3cd3c6bcf04bf5503fa78275d09aa26f9
src/main/java/com/zy/core/News.java
@@ -103,11 +103,11 @@
    }
    public static void info(String format, Object... arguments) {
        if (format.contains("[RCS Debug]")) {
        if (format.contains("[WCS Debug]")) {
            ConfigService configService = SpringUtils.getBean(ConfigService.class);
            if(configService != null) {
                boolean show = true;
                Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "rcsDebugShowLog"));
                Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsDebugShowLog"));
                if(config != null) {
                    show = config.getValue().equals("true");
                }
@@ -116,7 +116,11 @@
                    return;
                }
            }
            log.info(format, arguments);
            offer(NewsLevel.INFO, format, arguments);
            return;
        }
        RedisUtil redisUtil = null;
        try {
            redisUtil = SpringUtils.getBean(RedisUtil.class);
@@ -134,11 +138,11 @@
    }
    public static void warn(String format, Object... arguments) {
        if (format.contains("[RCS Debug]")) {
        if (format.contains("[WCS Debug]")) {
            ConfigService configService = SpringUtils.getBean(ConfigService.class);
            if(configService != null) {
                boolean show = true;
                Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "rcsDebugShowLog"));
                Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsDebugShowLog"));
                if(config != null) {
                    show = config.getValue().equals("true");
                }
@@ -147,7 +151,11 @@
                    return;
                }
            }
            log.warn(format, arguments);
            offer(NewsLevel.WARN, format, arguments);
            return;
        }
        RedisUtil redisUtil = null;
        try {
            redisUtil = SpringUtils.getBean(RedisUtil.class);
@@ -165,11 +173,11 @@
    }
    public static void error(String format, Object... arguments) {
        if (format.contains("[RCS Debug]")) {
        if (format.contains("[WCS Debug]")) {
            ConfigService configService = SpringUtils.getBean(ConfigService.class);
            if(configService != null) {
                boolean show = true;
                Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "rcsDebugShowLog"));
                Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsDebugShowLog"));
                if(config != null) {
                    show = config.getValue().equals("true");
                }
@@ -178,7 +186,11 @@
                    return;
                }
            }
            log.error(format, arguments);
            offer(NewsLevel.ERROR, format, arguments);
            return;
        }
        RedisUtil redisUtil = null;
        try {
            redisUtil = SpringUtils.getBean(RedisUtil.class);