qiubh 5 天之前
父節點
當前提交
0560891cec
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      zhywpt-app-iaw/src/main/java/cn/com/taiji/iaw/manager/AbstractCommManager.java

+ 3
- 2
zhywpt-app-iaw/src/main/java/cn/com/taiji/iaw/manager/AbstractCommManager.java 查看文件

@@ -136,13 +136,13 @@ public abstract class AbstractCommManager extends RedisCacheManager {
if (e.getErrCode() == GlyServiceError.BUSINESS_VALIDATE_ERR.getCode() || e.getErrCode() == 801) {
logger.info("错误类别:BUSINESS_ERROR(704),ifCode:{},\n响应内容:{}", ifCode, jsonRes);
String errorMsg = hasText(jsonRes.getErrorMsg()) && jsonRes.getErrorMsg().contains("业务校验失败:")?
jsonRes.getErrorMsg().substring(jsonRes.getErrorMsg().lastIndexOf("业务校验失败:")+7, jsonRes.getErrorMsg().length()-1):jsonRes.getErrorMsg();
jsonRes.getErrorMsg().substring(jsonRes.getErrorMsg().lastIndexOf("业务校验失败:")+7, jsonRes.getErrorMsg().length()):jsonRes.getErrorMsg();
throw new ManagerException(errorMsg);// 业务校验出错
}
if (e.getErrCode() == GlyServiceError.PERSIST_ERR.getCode() || e.getErrCode() == 801) {
logger.info("错误类别:PERSIST_ERR(705),ifCode:{},\n响应内容:{}", ifCode, jsonRes);
String errorMsg = hasText(jsonRes.getErrorMsg()) && jsonRes.getErrorMsg().contains("业务校验失败:")?
jsonRes.getErrorMsg().substring(jsonRes.getErrorMsg().lastIndexOf("业务校验失败:")+7, jsonRes.getErrorMsg().length()-1):jsonRes.getErrorMsg();
jsonRes.getErrorMsg().substring(jsonRes.getErrorMsg().lastIndexOf("业务校验失败:")+7, jsonRes.getErrorMsg().length()):jsonRes.getErrorMsg();
throw new ManagerException(errorMsg);// 持久化出错
}
if (e.getErrCode() == 808) {
@@ -156,6 +156,7 @@ public abstract class AbstractCommManager extends RedisCacheManager {
logger.info("错误类别:未知错误,errorCode:{},ifCode:{}\n响应内容:{}", e.getErrCode(), ifCode, jsonRes);
throw new ManagerException("未知错误:" + jsonRes.getErrorMsg());
}

private String getRequestUri() {
try {
ServletRequestAttributes requestAttributes =

Loading…
取消
儲存