From 5d1dd587ec652848c9154985513ea07b1f0be757 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 27 八月 2019 10:09:55 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/TokenRecordServiceImpl.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/TokenRecordServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/TokenRecordServiceImpl.java index 7c8f541..c836010 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/TokenRecordServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/TokenRecordServiceImpl.java @@ -117,8 +117,8 @@ throw new TokenRecordException(1, "鍙d护涓嶅瓨鍦�"); Long uidToken = rokenRecord.getUid(); -// if (uid != null && uidToken != null && uid.longValue() == uidToken.longValue()) -// throw new TokenRecordException(1, "涓嶈兘鑷繁璧犻�佺粰鑷繁"); + if (uid != null && uidToken != null && uid.longValue() == uidToken.longValue()) + throw new TokenRecordException(1, "涓嶈兘鑷繁璧犻�佺粰鑷繁"); Date now = new Date(); Date endTimeToken = rokenRecord.getEndTime(); @@ -289,9 +289,9 @@ if (rokenRecord == null) throw new TokenRecordException(1, "鍙d护宸插け鏁�"); -// Long uidToken = rokenRecord.getUid(); -// if (uidToken != null && uid.longValue() == uidToken.longValue()) -// throw new TokenRecordException(1, "涓嶈兘鑷繁璧犻�佺粰鑷繁"); + Long uidToken = rokenRecord.getUid(); + if (uidToken != null && uid.longValue() == uidToken.longValue()) + throw new TokenRecordException(1, "涓嶈兘鑷繁璧犻�佺粰鑷繁"); Date now = new Date(); Date endTimeToken = rokenRecord.getEndTime(); -- Gitblit v1.8.0