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; } }