This commit is contained in:
qiurunze 2018-12-27 16:15:39 +08:00
parent 370e0eb50a
commit 99d0013ce1

View File

@ -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<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;