Commit 9928614b authored by zhuxiao's avatar zhuxiao
Browse files

修改注释

parent 137609df
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment