| | |
| | | //单项提取-登录超时 |
| | | Integer type = OperationLogEnum.TYPE_1_SYS.getType(); |
| | | if (exceptionStr.contains("login") && exceptionStr.contains("imeout")) { |
| | | logService.record(UserUtil.getUser().getUid(), OperationLogEnum.TYPE_1_SYS.getType(),OperationLogEnum.TYPE_2_CONNECTION_TIMEOUT.getType(), "登录请求超时", "异常信息:" + exceptionStr); |
| | | logService.record(OperationLogEnum.TYPE_1_SYS.getType(),OperationLogEnum.TYPE_2_CONNECTION_TIMEOUT.getType(), "登录请求超时", "异常信息:" + exceptionStr); |
| | | } else { |
| | | logService.record(UserUtil.getUser().getUid(), OperationLogEnum.TYPE_1_SYS.getType(),OperationLogEnum.TYPE_2_EXCEPTION.getType(),"接口调用异常", "接口调用异常:调用接口" + requestURI + "发生错误:" + exceptionStr); |
| | | logService.record(OperationLogEnum.TYPE_1_SYS.getType(),OperationLogEnum.TYPE_2_EXCEPTION.getType(),"接口调用异常", "接口调用异常:调用接口" + requestURI + "发生错误:" + exceptionStr); |
| | | } |
| | | return new Response().set(0, "接口请求异常,请联系软件人员进行处理.异常信息" + exceptionStr); |
| | | } |