自动化立体仓库 - WMS系统
#
tqs
2022-10-29 a8b6582ffbcdc353bd06436d76e262e547114897
src/main/java/com/zy/common/web/BaseController.java
@@ -1,6 +1,5 @@
package com.zy.common.web;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
@@ -148,10 +147,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;
            }
        }