添加日志

master
jiahuiwen 2020-11-13 14:04:07 +08:00
parent 14ec9aa9f3
commit a833a6a913
1 changed files with 3 additions and 0 deletions

View File

@ -65,14 +65,17 @@ public class GetUserController extends HttpServlet {
}
try {
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) {
String[] split = banInfo.split("\\|");
long currentTimeMillis = System.currentTimeMillis();
if (Long.parseLong(split[0]) > currentTimeMillis) {
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;
} else {
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) {