generated from root/miduo_server
log
parent
cd31e6fa09
commit
96f70453ed
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue