|
|
|
@ -32,14 +32,14 @@ public class FactoryTokenServiceImpl extends BaseServiceImpl<FactoryTokenMapper,
|
|
|
|
|
.eq("corpid",corpId); |
|
|
|
|
FactoryToken factoryToken = baseMapper.selectOne(queryWrapper); |
|
|
|
|
if(Objects.isNull(factoryToken)){ |
|
|
|
|
logger.warn("#########verifyToken: token验证不通过 token={},corpid={}",token,corpId); |
|
|
|
|
logger.error("#########verifyToken: token验证不通过 token={},corpid={}",token,corpId); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
Long expireTimeLong = factoryToken.getExpireTime().getTime(); |
|
|
|
|
Long now = new Date().getTime(); |
|
|
|
|
//判断是否过期
|
|
|
|
|
if(now > expireTimeLong){ |
|
|
|
|
logger.warn("#########verifyToken: token验证不通过 已过期 token={},corpId={}",token,corpId); |
|
|
|
|
logger.error("#########verifyToken: token验证不通过 已过期 token={},corpId={}",token,corpId); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|