Juggle
Juggle copied to clipboard
对集合参数的解析不支持
基础信息
操作系统:xxx 如:Ubuntu Juggle版本:x.x.x 如:1.0.0 部署方式:xxx 如:Docker
问题描述
protected void buildRequestParams(HttpUriRequestBase httpRequest, Request request) { if (request.getRequestParams() != null) { String jsonParam = null; try { jsonParam = JsonSerializeHelper.serialize(request.getRequestParams()); } catch (JsonProcessingException e) { throw new RuntimeException(e); } StringEntity stringEntity = new StringEntity(jsonParam, ContentType.APPLICATION_JSON); httpRequest.setEntity(stringEntity); } }
request.getRequestParams() 的参数未对集合参数特殊处理、对值没有转换成集合对象、导致下层接口获取参数失败(调用的下层接口是 json、body、参数当中有一个集合参数、这个集合参数没有序列化成数组)
复现步骤
错误日志或截图
有具体的截图吗?