自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-12-14 e732ec664a35080497fd17d6550fd5d718466332
src/main/java/com/zy/common/web/BaseController.java
@@ -144,14 +144,16 @@
        }
    }
    protected static boolean isJSON(String str) {
    public static boolean isJSON(String str) {
        if (Cools.isEmpty(str)) {
            return false;
        } else {
            try {
                JSON.parse(str);
            str = str.trim();
            if (str.startsWith("{") && str.endsWith("}")) {
                return true;
            } catch (Exception e) {
            } else if (str.startsWith("[") && str.endsWith("]")) {
                return true;
            } else {
                return false;
            }
        }