From a24136d6fe92bcb055c965600caef399df563361 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 9 Jan 2025 21:28:57 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/top/continew/admin/config/log/LogDaoLocalImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/continew-webapi/src/main/java/top/continew/admin/config/log/LogDaoLocalImpl.java b/continew-webapi/src/main/java/top/continew/admin/config/log/LogDaoLocalImpl.java index fc8f732e..b9808e20 100644 --- a/continew-webapi/src/main/java/top/continew/admin/config/log/LogDaoLocalImpl.java +++ b/continew-webapi/src/main/java/top/continew/admin/config/log/LogDaoLocalImpl.java @@ -30,6 +30,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.scheduling.annotation.Async; import top.continew.admin.auth.enums.AuthTypeEnum; import top.continew.admin.auth.model.req.AccountLoginReq; +import top.continew.admin.auth.model.req.LoginReq; import top.continew.admin.common.constant.SysConstants; import top.continew.admin.system.enums.LogStatusEnum; import top.continew.admin.system.mapper.LogMapper; @@ -146,6 +147,7 @@ public class LogDaoLocalImpl implements LogDao { // 解析登录接口信息 if (requestUri.startsWith(SysConstants.LOGIN_URI) && LogStatusEnum.SUCCESS.equals(logDO.getStatus())) { String requestBody = logRequest.getBody(); + logDO.setDescription(JSONUtil.toBean(requestBody, LoginReq.class).getAuthType().getDescription() + "登录"); // 解析账号登录用户为操作人 if (requestBody.contains(AuthTypeEnum.ACCOUNT.getValue())) { AccountLoginReq authReq = JSONUtil.toBean(requestBody, AccountLoginReq.class);