mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
提交
This commit is contained in:
parent
370e0eb50a
commit
99d0013ce1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user