zhang
2025-06-13 ae54e42cbe354ef5c39954eed2eab18de9504946
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;
    }
}