REM:
1. 修复一处代码检测警告
This commit is contained in:
HuangXin 2021-10-09 10:47:48 +08:00
parent cbb1d29a63
commit 31265036f0
1 changed files with 29 additions and 26 deletions

View File

@ -510,12 +510,15 @@ public class PengXinAbilityImpl implements DisposeAbility {
return true;
}
if (rspInfo.getCode() == HttpServletResponse.SC_OK &&
(status == ErrorCode.ERR_LOGOUT.getCode() || status == ErrorCode.ERR_TOKENTIMEOUT.getCode() ||
status == ErrorCode.ERR_TOKENNOTFOUND.getCode())) {
if (rspInfo.getCode() == HttpServletResponse.SC_OK) {
if (status == ErrorCode.ERR_LOGOUT.getCode() ||
status == ErrorCode.ERR_TOKENTIMEOUT.getCode() ||
status == ErrorCode.ERR_TOKENNOTFOUND.getCode()) {
upgradeToken();
return true;
}
}
return false;
} catch (Exception ignored) {
return false;