自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-12-07 e1eea4f4e9a999b9b8eb35722ecc9c7ad7ce5b3c
#
1个文件已修改
8 ■■■■■ 已修改文件
src/main/java/com/zy/common/web/BaseController.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/web/BaseController.java
@@ -148,10 +148,12 @@
        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;
            }
        }