fix: 修复用户注销时,没有记录注销日志

2.X
mroldx 3 years ago
parent 26fe77bf21
commit 784c6a9464

@ -83,8 +83,9 @@ public class TokenController {
@DeleteMapping("logout")
public R<Void> logout() {
try {
String username = LoginHelper.getUsername();
StpUtil.logout();
sysLoginService.logout(LoginHelper.getUsername());
sysLoginService.logout(username);
} catch (NotLoginException e) {
}
return R.ok();

Loading…
Cancel
Save