Browse Source

错误提示语修改

chenw 6 years ago
parent
commit
b7bd30148b

+ 3 - 0
applications/sale/sale-server/src/main/java/com/usoftchina/saas/sale/service/impl/ApCheckServiceImpl.java

@@ -216,6 +216,9 @@ public class ApCheckServiceImpl implements ApCheckService {
                 if (e instanceof HttpServerErrorException){
                     HttpServerErrorException httpServerErrorException = (HttpServerErrorException) e;
                     String responseText = httpServerErrorException.getResponseBodyAsString();
+                    if (responseText.startsWith("无法对账!(该客户未对您启用B2B对账")) {
+                        responseText = "无法对账!该客户未对您启用B2B对账,请让客户在“U企云服-UU设置”里获取UU后再进行对账。";
+                    }
                     throw new BizException(80000, responseText);
                 }else {
                     throw new BizException(80000, e.getMessage());