From 99d0013ce13f2c0898e8de384e4e941a86953fb4 Mon Sep 17 00:00:00 2001 From: qiurunze Date: Thu, 27 Dec 2018 16:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/geekq/miaosha/controller/LoginController.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/geekq/miaosha/controller/LoginController.java b/src/main/java/com/geekq/miaosha/controller/LoginController.java index 2d9ce0b..984bedf 100644 --- a/src/main/java/com/geekq/miaosha/controller/LoginController.java +++ b/src/main/java/com/geekq/miaosha/controller/LoginController.java @@ -29,9 +29,11 @@ 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"; } @@ -39,7 +41,6 @@ public class LoginController { @ResponseBody public ResultGeekQ dologin(HttpServletResponse response, @Valid LoginVo loginVo) { ResultGeekQ result = ResultGeekQ.build(); -// RedisLua.vistorCount(COUNTLOGIN); logger.info(loginVo.toString()); userService.login(response, loginVo); return result;