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
9928614b
Commit
9928614b
authored
Jun 29, 2021
by
zhuxiao
Browse files
修改注释
parent
137609df
Changes
1
Show whitespace changes
Inline
Side-by-side
jeepay-core/src/main/java/com/jeequan/jeepay/core/beans/RequestKitBean.java
View file @
9928614b
...
...
@@ -49,9 +49,13 @@ public class RequestKitBean {
/** reqContext对象中的key: 转换好的json对象 */
private
static
final
String
REQ_CONTEXT_KEY_PARAMJSON
=
"REQ_CONTEXT_KEY_PARAMJSON"
;
/**
request.getParameter 获取参数 并转换为
JSON格式 **/
/**
JSON
格式
通过请求主体(BODY)传输 获取参数
**/
public
String
getReqParamFromBody
()
{
String
body
=
""
;
if
(
isConvertJSON
()){
try
{
String
str
;
while
((
str
=
request
.
getReader
().
readLine
())
!=
null
){
...
...
@@ -64,6 +68,9 @@ public class RequestKitBean {
log
.
error
(
"请求参数转换异常! params=[{}]"
,
body
);
throw
new
BizException
(
ApiCodeEnum
.
PARAMS_ERROR
,
"转换异常"
);
}
}
else
{
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