Juggle icon indicating copy to clipboard operation
Juggle copied to clipboard

对集合参数的解析不支持

Open 4017147 opened this issue 1 year ago • 1 comments

基础信息

操作系统: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、参数当中有一个集合参数、这个集合参数没有序列化成数组)

复现步骤

错误日志或截图

4017147 avatar Nov 27 '24 07:11 4017147

有具体的截图吗?

somta avatar Nov 27 '24 08:11 somta