Commit 38494007 by zhangyu

登陆修改

parent 38a9d286
...@@ -147,6 +147,7 @@ public class UserController { ...@@ -147,6 +147,7 @@ public class UserController {
} }
if (null != redisUsername && Integer.parseInt(redisUsername) >= 6) { if (null != redisUsername && Integer.parseInt(redisUsername) >= 6) {
redisUtils.set("black_username:"+loginBean.getLoginName(), 1, indexDb);
redisUtils.expire("black_username:" + loginBean.getLoginName(), 300, indexDb); redisUtils.expire("black_username:" + loginBean.getLoginName(), 300, indexDb);
responseBean.setStatus(ErrorCode.STATUS_CODE_4101); responseBean.setStatus(ErrorCode.STATUS_CODE_4101);
responseBean.setMessage("该帐号已禁止登录"); responseBean.setMessage("该帐号已禁止登录");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment