Commit e1979def authored by yanzg's avatar yanzg

修复等待时间

parent 9251158a
...@@ -20,6 +20,8 @@ import java.util.List; ...@@ -20,6 +20,8 @@ import java.util.List;
@Component @Component
public class AspectLogTime implements ThreadNext.Next, InitializingBean { public class AspectLogTime implements ThreadNext.Next, InitializingBean {
private static final String URL_PARA_START = "?";
/** /**
* 今日缓存,超过时间会自动清空 * 今日缓存,超过时间会自动清空
*/ */
...@@ -61,6 +63,9 @@ public class AspectLogTime implements ThreadNext.Next, InitializingBean { ...@@ -61,6 +63,9 @@ public class AspectLogTime implements ThreadNext.Next, InitializingBean {
private AspectUrlCountVo getCount(String url) { private AspectUrlCountVo getCount(String url) {
// 初始化日期 // 初始化日期
initToday(); initToday();
if (url.contains(URL_PARA_START)) {
url = url.substring(0, url.indexOf(URL_PARA_START));
}
// 缓存中获取对象 // 缓存中获取对象
AspectUrlCountVo ret = todayMemoryCache.get(url); AspectUrlCountVo ret = todayMemoryCache.get(url);
if (ret != null) { if (ret != null) {
......
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