| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.mes.MesReturn; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.common.utils.IpTools; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | ); |
| | | } |
| | | } |
| | | if (o instanceof MesReturn) { |
| | | MesReturn mesReturn = (MesReturn) o; |
| | | 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(mesReturn.getSuccess()).equalsIgnoreCase("1") |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | return o; |