BKhp  
Object result = point.proceed();
if (result != null) {
if (result instanceof R){ Entity.setResult(new Gson().toJson(result)); }else { Entity.setResult(result.toString()); } //取出result中的信息 JSONObject resultStr = (JSONObject) JSONObject.parse(Entity.getResult()); String mg = resultStr.getString("mg"); int de = resultStr.getInteger("de"); }



打印的信息
result==================================={mg=cess, de=2, expire=432, pae=2, tn=f8005b7a068354}   //对象类型
result================================={"mg":"cess","de":2,"expire":40,"pae":2,"tn":"5b7a068354"}  //String类型
mg===================================cess  //取出后
de===================================2     //取出后
 
posted on 2019-12-19 19:28  BKhp  阅读(19048)  评论(0编辑  收藏  举报