记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
faa826a3
Commit
faa826a3
authored
Jun 24, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 用户行为分析 日志
parent
964e4788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
UserPathDto.java
...src/main/java/com/liquidnet/service/base/UserPathDto.java
+10
-9
No files found.
liquidnet-bus-common/liquidnet-common-service-base/src/main/java/com/liquidnet/service/base/UserPathDto.java
View file @
faa826a3
...
...
@@ -15,32 +15,33 @@ public class UserPathDto implements Serializable {
private
static
UserPathDto
instance
=
new
UserPathDto
();
private
static
final
long
serialVersionUID
=
-
4153353929914805750L
;
private
String
tag
;
private
String
uid
;
// private String tag;
// private String uid;
// private String ip;
private
String
token
;
private
String
time
;
//yyyyMMddHHmmssSSS
private
String
interfaceName
;
private
String
params
;
private
String
result
;
private
String
ip
;
private
String
userAgent
;
private
UserPathDto
()
{}
private
UserPathDto
()
{
}
private
static
UserPathDto
getInstance
()
{
return
instance
;
}
public
static
String
setData
(
String
interfaceName
,
Object
params
,
Object
result
)
{
instance
.
tag
=
"MDSKY.NOW.ELK"
;
instance
.
uid
=
CurrentUtil
.
getCurrentUid
()
==
null
?
"UID"
:
CurrentUtil
.
getCurrentUid
();
// instance.tag = "MDSKY.NOW.ELK";
// instance.ip = CurrentUtil.getCliIpAddr();
String
uid
=
CurrentUtil
.
getCurrentUid
()
==
null
?
"UID"
:
CurrentUtil
.
getCurrentUid
();
instance
.
token
=
CurrentUtil
.
getToken
()
==
null
?
"TOKEN"
:
CurrentUtil
.
getToken
();
instance
.
time
=
DateUtil
.
Formatter
.
yyyyMMddHHmmssSSSUnTrim
.
format
(
LocalDateTime
.
now
());
instance
.
interfaceName
=
interfaceName
;
instance
.
params
=
params
.
toString
().
equals
(
""
)
?
"NanParams"
:
params
.
toString
();
instance
.
result
=
result
.
toString
().
equals
(
""
)
?
"NanResults"
:
result
.
toString
();;
instance
.
ip
=
CurrentUtil
.
getCliIpAddr
();
instance
.
result
=
result
.
toString
().
equals
(
""
)
?
"NanResults"
:
result
.
toString
();
instance
.
userAgent
=
ServletUtils
.
getRequest
().
getHeader
(
"User-Agent"
);
return
JsonUtils
.
toJson
(
instance
);
return
"MDSKY.NOW.ELK."
+
uid
==
"UID"
?
CurrentUtil
.
getCliIpAddr
()
:
uid
+
" = "
+
JsonUtils
.
toJson
(
instance
);
}
}
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