src/main/java/com/zy/common/web/BaseController.java | ●●●●● 补丁 | 查看 | 原始文档 | 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; } }