diff --git a/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java b/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java index 0e92a39b..b6977c85 100644 --- a/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java +++ b/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java @@ -89,8 +89,12 @@ public class PengXinInterface { if (rspInfo != null && rspInfo.getMsgContent() != null) { if (rspInfo.getCode() == HttpServletResponse.SC_UNAUTHORIZED) { return ErrorCode.ERR_LOGOUT; - } else if (rspInfo.getMsgContent().getStatus() == ErrorCode.ERR_OK.getCode()) { - return ErrorCode.ERR_OK; + } else if (rspInfo.getCode() == HttpServletResponse.SC_OK) { + if(rspInfo.getMsgContent().getStatus() != ErrorCode.ERR_OK.getCode()){ + return ErrorCode.ERR_LOGOUT; + } else { + return ErrorCode.ERR_OK; + } } }