zhangc
2025-03-11 d5449236ef0b3adafb3e4cc872f50479efa0ce7b
src/main/java/com/zy/system/controller/ConfigController.java
@@ -23,6 +23,15 @@
    @Autowired
    private ConfigService configService;
    private static boolean checkJson(String val) {
        Object parse = null;
        try {
            parse = JSON.parse(val);
        } catch (Exception ignore) {
        }
        return parse != null;
    }
    @RequestMapping(value = "/config/{id}/auth")
    @ManagerAuth
    public R get(@PathVariable("id") Long id) {
@@ -157,16 +166,6 @@
            return R.error();
        }
        return R.ok();
    }
    private static boolean checkJson(String val){
        Object parse = null;
        try {
            parse = JSON.parse(val);
        } catch (Exception ignore){
        }
        return parse != null;
    }
}