generated from root/miduo_server
添加日志
parent
14ec9aa9f3
commit
a833a6a913
|
@ -65,14 +65,17 @@ public class GetUserController extends HttpServlet {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
String banInfo = BaseGlobal.getInstance().redisApp.get(RedisKey.Ban_Open_Id, openId, String.class, -1);
|
String banInfo = BaseGlobal.getInstance().redisApp.get(RedisKey.Ban_Open_Id, openId, String.class, -1);
|
||||||
|
LOGGER.info("doGet Ban_Open_Id=>{} openId=>{} banInfo==null ? {}", RedisKey.Ban_Open_Id, openId, banInfo==null ? null : banInfo);
|
||||||
if (banInfo != null) {
|
if (banInfo != null) {
|
||||||
String[] split = banInfo.split("\\|");
|
String[] split = banInfo.split("\\|");
|
||||||
long currentTimeMillis = System.currentTimeMillis();
|
long currentTimeMillis = System.currentTimeMillis();
|
||||||
if (Long.parseLong(split[0]) > currentTimeMillis) {
|
if (Long.parseLong(split[0]) > currentTimeMillis) {
|
||||||
response.sendError(400, split[1]);
|
response.sendError(400, split[1]);
|
||||||
|
LOGGER.info("doGet can not login Ban_Open_Id=>{} openId=>{} banInfo==null ? {}", RedisKey.Ban_Open_Id, openId, banInfo==null ? null : banInfo);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
BaseGlobal.getInstance().redisApp.del(RedisKey.Ban_Open_Id, openId);
|
BaseGlobal.getInstance().redisApp.del(RedisKey.Ban_Open_Id, openId);
|
||||||
|
LOGGER.info("doGet del Ban_Open_Id=>{} openId=>{} banInfo==null ? {}", RedisKey.Ban_Open_Id, openId, banInfo==null ? null : banInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue