| | |
| | | package com.zy.common.config; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.mes.MesReturn; |
| | |
| | | String.valueOf(mesReturn.getSuccess()).equalsIgnoreCase("1") |
| | | ); |
| | | } |
| | | if (o instanceof JSONObject) { |
| | | String appkey = request.getHeader("appkey"); |
| | | Object reqCache = request.getAttribute("cache"); |
| | | // 保存接口日志 |
| | | apiLogService.save( |
| | | String.valueOf(appAuth), |
| | | request.getRequestURI(), |
| | | appkey, |
| | | IpTools.gainRealIp(request), |
| | | reqCache==null?"": JSON.toJSONString(reqCache), |
| | | JSON.toJSONString(o), |
| | | String.valueOf(((JSONObject) o).get("Success")).equalsIgnoreCase("1") |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | return o; |