From 96f70453edca6407e27096174c424d50218c621f Mon Sep 17 00:00:00 2001 From: wangyuan Date: Thu, 19 Sep 2019 15:08:32 +0800 Subject: [PATCH] log --- src/main/java/com/ljsd/controller/GetUserController.java | 1 + src/main/java/com/ljsd/redis/RedisApp.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/ljsd/controller/GetUserController.java b/src/main/java/com/ljsd/controller/GetUserController.java index d0819b7..e896259 100644 --- a/src/main/java/com/ljsd/controller/GetUserController.java +++ b/src/main/java/com/ljsd/controller/GetUserController.java @@ -144,6 +144,7 @@ public class GetUserController extends HttpServlet { public static boolean loginVerfifyByTestLan(String openId,String token) throws Exception { String tokenInRedis = BaseGlobal.getInstance().redisApp.get(RedisKey.LOGIN_TOKEN, openId, String.class, -1); + LOGGER.info("tokenInRedis={}",tokenInRedis); return token.equals(tokenInRedis); } diff --git a/src/main/java/com/ljsd/redis/RedisApp.java b/src/main/java/com/ljsd/redis/RedisApp.java index 0e139af..f4151dc 100644 --- a/src/main/java/com/ljsd/redis/RedisApp.java +++ b/src/main/java/com/ljsd/redis/RedisApp.java @@ -42,6 +42,7 @@ public class RedisApp { public T get(final String type, final K key, final Class clazz, final int seconds, boolean withServerId) throws Exception { String fullKey = getKey(type, key, withServerId); + System.out.println("-------fullKey---------"+fullKey); String strValue = redisUtil.get(fullKey); if (strValue == null) { return null;