|
|
@@ -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 = |