提交 c11e65e8 编写于 作者: 智布道's avatar 智布道 👁

👽 修改`RequestUtil.getParametersMap`方法

上级 43ca9fa6
......@@ -33,21 +33,12 @@ public class RequestUtil {
return sb.toString();
}
public static Map<String, Object> getParametersMap() {
public static Map<String, String[]> getParametersMap() {
HttpServletRequest request = RequestHolder.getRequest();
if (null == request) {
return new HashMap<>();
}
Enumeration<String> paraNames = request.getParameterNames();
if (paraNames == null) {
return new HashMap<>();
}
Map<String, Object> res = new HashMap<>();
while (paraNames.hasMoreElements()) {
String paraName = paraNames.nextElement();
res.put(paraName, request.getParameter(paraName));
}
return res;
return request.getParameterMap();
}
public static String getHeader(String headerName) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册