...
|
...
|
@@ -71,7 +71,12 @@ public class OperationLogAspect { |
|
|
map.put("title",request.getParameter("title"));
|
|
|
map.put("desc",request.getParameter("desc"));
|
|
|
map.put("value",request.getParameter("value"));
|
|
|
return JSONObject.toJSONString(map);
|
|
|
//这样拼接返回的不是一个json格式数据,此处不使用JSONObject序列化
|
|
|
//是因为json序列化会使value字段里的 " 被转义为 \",不好做json格式校验
|
|
|
StringBuffer stringBuffer = new StringBuffer("{");
|
|
|
map.forEach((key,value) -> stringBuffer.append(key).append(":").append(value).append(","));
|
|
|
String json = stringBuffer.substring(0,stringBuffer.length()-1);
|
|
|
return json + "}";
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|