优化代码

This commit is contained in:
RuoYi
2022-09-09 10:09:56 +08:00
parent 0ca327f538
commit d4a33eab94
3 changed files with 11 additions and 3 deletions

View File

@ -82,7 +82,7 @@ public class LogAspect
// 请求的地址
String ip = ShiroUtils.getIp();
operLog.setOperIp(ip);
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
operLog.setOperUrl(StringUtils.substring(ServletUtils.getRequest().getRequestURI(), 0, 255));
if (currentUser != null)
{
operLog.setOperName(currentUser.getLoginName());