Commit 2a21f5c3 authored by yanzg's avatar yanzg

修复异常提醒,从而正确的跟踪异常信息

parent 8fc8b29d
......@@ -149,12 +149,14 @@ public class AspectLogUrl {
url = item.value()[0];
}
}
// 地址处理,源地址最后增加斜杠
if (sb.length() > 1 && !StringHelper.compare(sb.substring(sb.length() - 2, sb.length() - 1), "/")) {
sb.append("/");
if (sb.length() > 1) {
// 地址处理,源地址最后增加斜杠
if (!StringHelper.compare(sb.substring(sb.length() - 2, sb.length() - 1), "/")) {
sb.append("/");
}
// 地址处理,来源地址去掉最后的斜杠
url = StringHelper.trimStart(url, "/");
}
// 地址处理,来源地址去掉最后的斜杠
url = StringHelper.trimStart(url, "/");
sb.append(url);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment