Commit 1933257c authored by 杨钧's avatar 杨钧

json格式处理

parent 20e8a407
...@@ -116,7 +116,7 @@ public class OperateLogAspect { ...@@ -116,7 +116,7 @@ public class OperateLogAspect {
} }
log.info("{} 处理结果:{}", logPre, String.valueOf(result)); log.info("{} 处理结果:{}", logPre, String.valueOf(result));
JSONObject resultJson = JSONObject.parseObject(result.toString()); JSONObject resultJson = JSONObject.parseObject(JSONObject.toJSONString(result));
int status = 0; int status = 0;
if(resultJson.containsKey("code") && Constant.SUCCESS_CODE.equals(resultJson.getString("code"))){ if(resultJson.containsKey("code") && Constant.SUCCESS_CODE.equals(resultJson.getString("code"))){
status = 1; status = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment