Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
qiurunze committed Dec 27, 2018
1 parent 370e0eb commit 99d0013
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ public class LoginController {
@RequestMapping("/to_login")
public String tologin(LoginVo loginVo, Model model) {
logger.info(loginVo.toString());
// String count = RedisLua.getVistorCount(COUNTLOGIN).toString();
// logger.info("访问网站的次数为:{}",count);
// model.addAttribute("count",count);
//未完成
RedisLua.vistorCount(COUNTLOGIN);
String count = RedisLua.getVistorCount(COUNTLOGIN).toString();
logger.info("访问网站的次数为:{}",count);
model.addAttribute("count",count);
return "login";
}

@RequestMapping("/do_login")
@ResponseBody
public ResultGeekQ<Boolean> dologin(HttpServletResponse response, @Valid LoginVo loginVo) {
ResultGeekQ<Boolean> result = ResultGeekQ.build();
// RedisLua.vistorCount(COUNTLOGIN);
logger.info(loginVo.toString());
userService.login(response, loginVo);
return result;
Expand Down

0 comments on commit 99d0013

Please sign in to comment.