REM:
1.添加连接状态接口更新token的条件
This commit is contained in:
wangyiyun 2021-07-08 14:56:23 +08:00
parent 83f993304a
commit 8d5191e609
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}
}