src/main/java/com/zy/common/web/BaseController.java
@@ -145,12 +145,16 @@ public static boolean isJSON(String str) { if (Cools.isEmpty(str)) { return true; return false; } else { str = str.trim(); if (str.startsWith("{") && str.endsWith("}")) { return true; } else if (str.startsWith("[") && str.endsWith("]")) { return true; } else { return false; } else return !str.startsWith("[") || !str.endsWith("]"); } } } }