Commit 13db88aa authored by 王超's avatar 王超

111

parent bea46256
...@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.system; ...@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.system;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
...@@ -25,6 +27,7 @@ import com.ruoyi.system.service.ISysMenuService; ...@@ -25,6 +27,7 @@ import com.ruoyi.system.service.ISysMenuService;
* @author ruoyi * @author ruoyi
*/ */
@RestController @RestController
@Slf4j
public class SysLoginController public class SysLoginController
{ {
@Autowired @Autowired
...@@ -52,6 +55,7 @@ public class SysLoginController ...@@ -52,6 +55,7 @@ public class SysLoginController
// 生成令牌 // 生成令牌
String token = loginService.login(loginBody.getUsername(), loginBody.getPassword()); String token = loginService.login(loginBody.getUsername(), loginBody.getPassword());
ajax.put(Constants.TOKEN, token); ajax.put(Constants.TOKEN, token);
log.info("====login {} {}", loginBody.getUsername(), loginBody.getPassword());
return ajax; return ajax;
} }
......
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