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
458707da
Commit
458707da
authored
Sep 08, 2021
by
李传峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除不必要warn日志
parent
96effc51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
ResponseHandleUtil.java
...main/java/com/pcloud/common/utils/ResponseHandleUtil.java
+2
-12
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/ResponseHandleUtil.java
View file @
458707da
...
@@ -335,20 +335,9 @@ public class ResponseHandleUtil {
...
@@ -335,20 +335,9 @@ public class ResponseHandleUtil {
*/
*/
public
static
<
T
>
ResponseEntity
<
ResponseDto
<
T
>>
toResponse
(
T
data
)
{
public
static
<
T
>
ResponseEntity
<
ResponseDto
<
T
>>
toResponse
(
T
data
)
{
if
(
null
==
data
)
{
if
(
null
==
data
)
{
LOGGER
.
warn
(
"null data object"
);
return
null
;
return
null
;
}
}
ResponseDto
<
T
>
body
=
new
ResponseDto
<>(
data
);
return
new
ResponseEntity
<>(
new
ResponseDto
<>(
data
),
HttpStatus
.
OK
);
try
{
// body.setProduceAppName(Application.APP_NAME);
// body.setProduceIp(NginxUtils.getLocalAddress());
// StackTraceElement stackTraceElement = new Exception().getStackTrace()[1];
// body.setProduceClassName(stackTraceElement.getClassName());
// body.setProduceMethodName(stackTraceElement.getMethodName());
}
catch
(
Exception
e
)
{
LOGGER
.
warn
(
"【内部接口】封装返回类型失败:"
+
e
.
getMessage
(),
e
);
}
return
new
ResponseEntity
<>(
body
,
HttpStatus
.
OK
);
}
}
}
}
\ No newline at end of file
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