fix login out issue

This commit is contained in:
weiweiw 2024-07-24 13:22:35 +08:00
parent 5edaf204f6
commit 3e6d3794ed
2 changed files with 3 additions and 5 deletions

View File

@ -146,7 +146,6 @@ public class SysLoginService {
*/
public LoginUser login(String username, String password, String loginType) {
long startTime = System.currentTimeMillis(); // 记录开始时间
recordLogService.saveLogs(username, startTime, "开始登录", "登录类型:" + loginType, null, "信息");
if ("mobile".equals(loginType)) {
int contactType = getContactType(username);
@ -188,8 +187,6 @@ public class SysLoginService {
* @return 登录用户信息
*/
private LoginUser handleMobileLogin(String mobile, long startTime) {
recordLogService.saveLogs(mobile, startTime, "手机号验证码登录", "开始处理", null, "信息");
R<LoginUser> userResult = remoteUserService.getUserInfo(mobile, SecurityConstants.INNER);
validateUserResult(mobile, userResult, startTime);
@ -212,8 +209,6 @@ public class SysLoginService {
* @return 登录用户信息
*/
private LoginUser handleUsernamePasswordLogin(String username, String password, long startTime) {
recordLogService.saveLogs(username, startTime, "用户名密码登录", "开始处理", null, "信息");
validateLoginParameters(username, password, startTime); // 验证登录参数
validateIpBlacklist(username, startTime); // IP黑名单校验

View File

@ -61,6 +61,9 @@ public class AecDecryptParamFilter extends AbstractGatewayFilterFactory {
if (method == HttpMethod.GET) {
return handleGetRequest(exchange, chain);
}
if (method == HttpMethod.DELETE) {
return chain.filter(exchange);
}
return handleRequest(exchange, chain);
} catch (Exception e) {
log.error("处理请求时发生错误: {}", e.getMessage(), e);