From 9f2dc5c233ad145768dca37907a829cfcb1a5483 Mon Sep 17 00:00:00 2001 From: scmiot <scmiot@qq.com> Date: 星期六, 29 十月 2022 16:23:09 +0800 Subject: [PATCH] 删除几个Controller和代码生成模板中冗余的三元表达式。 --- ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java index 59a035e..0159bc3 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java @@ -73,7 +73,7 @@ // 璇锋眰鐨勫湴鍧� String ip = ServletUtils.getClientIP(); operLog.setOperIp(ip); - operLog.setOperUrl(ServletUtils.getRequest().getRequestURI()); + operLog.setOperUrl(StringUtils.substring(ServletUtils.getRequest().getRequestURI(), 0, 255)); operLog.setOperName(LoginHelper.getUsername()); if (e != null) { -- Gitblit v1.9.3