自动化立体仓库 - WMS系统
#
18516761980
2023-03-04 25d21a0dffb5a83fddcb6352bf0304a85b0186ec
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;
            }
        }