generated from root/miduo_server
添加日志
parent
5c8a6d7a2a
commit
6910cf5438
|
@ -72,7 +72,7 @@ public class GetUserController extends HttpServlet {
|
|||
if (Long.parseLong(split[0]) > currentTimeMillis) {
|
||||
DBObject res = new BasicDBObject();
|
||||
res.put("errorCode", -1);
|
||||
res.put("reason", split[1]);
|
||||
res.put("reason", banInfo);
|
||||
PrintWriter out = response.getWriter();
|
||||
out.print(res);
|
||||
out.flush();
|
||||
|
@ -153,6 +153,7 @@ public class GetUserController extends HttpServlet {
|
|||
res.put("uid", uid);
|
||||
res.put("token", utoken);
|
||||
res.put("errorCode", 0);
|
||||
LOGGER.info("=======================>openId=>{} uid=>{} token=>{}", openId, uid, token);
|
||||
BaseGlobal.getInstance().redisApp.set(RedisKey.TOKEN, String.valueOf(uid), utoken, -1, false);
|
||||
BaseGlobal.getInstance().redisApp.set(RedisKey.PIDGIDTEMP, String.valueOf(uid), pid+"#"+gid, -1, false);
|
||||
|
||||
|
@ -233,7 +234,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);
|
||||
LOGGER.info("loginVerfifyByTestLan tokenInRedis={} client=>{}",tokenInRedis, token);
|
||||
return token.equals(tokenInRedis);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue