db-token校验过期时间
parent
578698bee4
commit
cf2a5a0498
|
|
@ -140,7 +140,13 @@ public class TokenServiceDbImpl implements TokenService {
|
|||
if (model == null) {
|
||||
return null;
|
||||
}
|
||||
return JSONObject.parseObject(model.getVal(), LoginUser.class);
|
||||
|
||||
// 校验是否已过期
|
||||
if (model.getExpireTime().getTime() > System.currentTimeMillis()) {
|
||||
return JSONObject.parseObject(model.getVal(), LoginUser.class);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private Key getKeyInstance() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue