Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
e1979def
Commit
e1979def
authored
May 13, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复等待时间
parent
9251158a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
AspectLogTime.java
...rc/main/java/com/yanzuoguang/cloud/aop/AspectLogTime.java
+5
-0
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/AspectLogTime.java
View file @
e1979def
...
...
@@ -20,6 +20,8 @@ import java.util.List;
@Component
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 {
private
AspectUrlCountVo
getCount
(
String
url
)
{
// 初始化日期
initToday
();
if
(
url
.
contains
(
URL_PARA_START
))
{
url
=
url
.
substring
(
0
,
url
.
indexOf
(
URL_PARA_START
));
}
// 缓存中获取对象
AspectUrlCountVo
ret
=
todayMemoryCache
.
get
(
url
);
if
(
ret
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment