1、处理原始日志和报表统计中提示异常信息不准确,而无法定位错误的问题;

2、解决服务发生异常,请求日志记双份的问题;
This commit is contained in:
zhangdongxu
2018-12-13 20:47:01 +08:00
parent 0b1d9d8783
commit b205d55981
8 changed files with 725 additions and 543 deletions

View File

@@ -326,27 +326,23 @@ public class BaseRestController {
if (need != opAction) {
switch (need) {
case Constants.OPACTION_POST:
throw new RestServiceException(thread, time,
"操作行为错误,您使用的是POST请求,POST请求对应的opAction为" + Constants.OPACTION_POST + ",您请求中的opAction为" + opAction
throw new RestServiceException("操作行为错误,您使用的是POST请求,POST请求对应的opAction为" + Constants.OPACTION_POST + ",您请求中的opAction为" + opAction
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
RestBusinessCode.op_action_error.getValue());
case Constants.OPACTION_PUT:
throw new RestServiceException(thread, time,
"操作行为错误,您使用的是PUT请求,PUT请求对应的opAction为" + Constants.OPACTION_PUT + ",您请求中的opAction为" + opAction
throw new RestServiceException("操作行为错误,您使用的是PUT请求,PUT请求对应的opAction为" + Constants.OPACTION_PUT + ",您请求中的opAction为" + opAction
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
RestBusinessCode.op_action_error.getValue());
case Constants.OPACTION_DELETE:
throw new RestServiceException(thread, time,
"操作行为错误,您使用的是DELETE请求,DELETE请求对应的opAction为" + Constants.OPACTION_DELETE + ",您请求中的opAction为"
throw new RestServiceException("操作行为错误,您使用的是DELETE请求,DELETE请求对应的opAction为" + Constants.OPACTION_DELETE + ",您请求中的opAction为"
+ opAction + ",对应的请求方式为" + convertOpAction(opAction) + "!",
RestBusinessCode.op_action_error.getValue());
case Constants.OPACTION_GET:
throw new RestServiceException(thread, time,
"操作行为错误,您使用的是GET请求,GET请求对应的opAction为" + Constants.OPACTION_GET + ",您请求中的opAction为" + opAction
throw new RestServiceException("操作行为错误,您使用的是GET请求,GET请求对应的opAction为" + Constants.OPACTION_GET + ",您请求中的opAction为" + opAction
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
RestBusinessCode.op_action_error.getValue());
default:
throw new RestServiceException(thread, time, "操作行为错误,未找到属性opAction对应业务",
throw new RestServiceException("操作行为错误,未找到属性opAction对应业务",
RestBusinessCode.op_action_error.getValue());
}
}