Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
53e7b0f0
Commit
53e7b0f0
authored
Nov 25, 2021
by
dingzhiwei
Browse files
修改返回String类型的处理
parent
2545132b
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/ApiResBodyAdviceKit.java
View file @
53e7b0f0
...
...
@@ -50,6 +50,11 @@ public class ApiResBodyAdviceKit {
return
((
OriginalRes
)
body
).
getData
();
}
// 返回String 避免 StringHttpMessageConverter
if
(
body
instanceof
String
){
return
body
;
}
//返回文件流不处理
if
(
body
instanceof
InputStreamResource
){
return
body
;
...
...
Write
Preview
Supports
Markdown
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