Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
e4661427
Commit
e4661427
authored
Jul 16, 2019
by
songxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加不要的方法过滤
parent
6c618daa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ResponseHandleUtil.java
...main/java/com/pcloud/common/utils/ResponseHandleUtil.java
+7
-2
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/ResponseHandleUtil.java
View file @
e4661427
...
@@ -268,15 +268,20 @@ public class ResponseHandleUtil {
...
@@ -268,15 +268,20 @@ public class ResponseHandleUtil {
* @param body
* @param body
*/
*/
private
static
void
sendServerLink
(
ResponseDto
<?>
body
,
StackTraceElement
[]
stackTraceElements
)
{
private
static
void
sendServerLink
(
ResponseDto
<?>
body
,
StackTraceElement
[]
stackTraceElements
)
{
ServerLinkDTO
serverLinkDTO
=
new
ServerLinkDTO
();
int
index
=
2
;
int
index
=
2
;
// 如果第二级是parseMap或parseList表明是当前类的方法,则索引更新为3
// 如果第二级是parseMap或parseList表明是当前类的方法,则索引更新为3
String
methodName
=
stackTraceElements
[
index
].
getMethodName
();
String
methodName
=
stackTraceElements
[
index
].
getMethodName
();
if
(
methodName
.
startsWith
(
"parseMap"
)
||
methodName
.
startsWith
(
"parseList"
))
{
if
(
methodName
.
startsWith
(
"parseMap"
)
||
methodName
.
startsWith
(
"parseList"
))
{
index
=
3
;
index
=
3
;
}
}
methodName
=
stackTraceElements
[
index
].
getMethodName
();
// 数据平台和获取微信分享参数的接口过滤不用统计
if
(
"trackEventInfo"
.
equals
(
methodName
)
||
"getJsShareParam"
.
equals
(
methodName
))
{
return
;
}
ServerLinkDTO
serverLinkDTO
=
new
ServerLinkDTO
();
serverLinkDTO
.
setConsumerClassName
(
stackTraceElements
[
index
].
getClassName
());
serverLinkDTO
.
setConsumerClassName
(
stackTraceElements
[
index
].
getClassName
());
serverLinkDTO
.
setConsumerMethodName
(
stackTraceElements
[
index
].
getMethodName
()
);
serverLinkDTO
.
setConsumerMethodName
(
methodName
);
serverLinkDTO
.
setConsumerAppName
(
Application
.
APP_NAME
);
serverLinkDTO
.
setConsumerAppName
(
Application
.
APP_NAME
);
serverLinkDTO
.
setConsumerIp
(
NginxUtils
.
getLocalAddress
());
serverLinkDTO
.
setConsumerIp
(
NginxUtils
.
getLocalAddress
());
serverLinkDTO
.
setProduceAppName
(
body
.
getProduceAppName
());
serverLinkDTO
.
setProduceAppName
(
body
.
getProduceAppName
());
...
...
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