Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmeow committed Jun 23, 2016
1 parent 394a5f3 commit 805cd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/jwt/Jwt.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static Map<String, Object> validToken(String token) {
resultMap.put("state", TokenState.VALID.toString());
// 若payload包含ext字段,则校验是否过期
if (jsonOBj.containsKey("ext")) {
long extTime = (long) jsonOBj.get("ext");
long extTime = Long.valueOf(jsonOBj.get("ext").toString());
long curTime = new Date().getTime();
// 过期了
if (curTime > extTime) {
Expand Down

0 comments on commit 805cd84

Please sign in to comment.