From 8d5191e609aa9e8eb512290ca758f46e1584909f Mon Sep 17 00:00:00 2001 From: wangyiyun Date: Thu, 8 Jul 2021 14:56:23 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=E6=B7=BB=E5=8A=A0=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=8A=B6=E6=80=81=E6=8E=A5=E5=8F=A3=E6=9B=B4=E6=96=B0?= =?UTF-8?q?token=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/pengxin/dispose/protocol/PengXinInterface.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; + } } }