wangyuan 2019-09-19 15:08:32 +08:00
parent cd31e6fa09
commit 96f70453ed
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -42,6 +42,7 @@ public class RedisApp {
public <K, T> T get(final String type, final K key, final Class<T> 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;