Просмотр исходного кода

[停车][修改]:etcp server error handle

release_toaliyun_real
Stormeye Wu 6 лет назад
Родитель
Сommit
17c038723e
1 измененных файлов: 25 добавлений и 18 удалений
  1. +25
    -18
      mallinkService/src/main/java/com/iformall/utils/ETCPUtil.java

+ 25
- 18
mallinkService/src/main/java/com/iformall/utils/ETCPUtil.java Просмотреть файл

@@ -290,6 +290,13 @@ public class ETCPUtil {
return payType;
}

private boolean checkRespFailed(String resp) {
if(resp.startsWith("<html>") || resp.startsWith("<!DOCTYPE html>")) {
return true;
}
return false;
}

/**
* 6.1. 联合登录
*
@@ -322,7 +329,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -360,7 +367,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -393,7 +400,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -431,7 +438,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -471,7 +478,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -508,7 +515,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -542,7 +549,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -575,7 +582,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -602,7 +609,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -641,7 +648,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -684,7 +691,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -714,7 +721,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -741,7 +748,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")){
if(checkRespFailed(respStr)){
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -770,7 +777,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -803,7 +810,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -830,7 +837,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -862,7 +869,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;
@@ -890,7 +897,7 @@ public class ETCPUtil {
if(respStr == null) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
if(respStr.startsWith("<html>")) {
if(checkRespFailed(respStr)) {
throw new MallinkException(ErrorCode.ETCP_CMD_FAIL);
}
return respStr;


Загрузка…
Отмена
Сохранить