接口1:
响应结果:{"err_code":10000,"result":["035sdfsdfsd5561938231259BF","2sdsdfsdfsdD1556193823025BCE"]}
需要把返回的列表 用到第二个接口的参数里面,第二个接口接收的是数组
接口二:参数如下:,需要把接口1的参数用到add里
{
"device_id": 1,
"opertor_id": 1,
"data": [
{
"add": [
"8980573315560068231689AF",
"898057331556006823015ACD",
"898057331556006823238ADF"
],
"remove": [
"8980573315560068231689AF",
"898057331556006823015ACD",
"898057331556006823238ADF"
]
}
]
}
处理后:
{
"device_id": 1,
"opertor_id": 1,
"data": [
{
"add": [
${AAAA}
],
"remove": []
}
]
}
我的处理是在用接送JSON提取器,把第一个接口通过$.result提取出来保存为:AAA(是个列表),然后后传入到第二个接口 ,进行请求时,响应结果是:缺少数组两个参数:
{"err_code":10101,"result":"The data.add field must be present. The data.remove field must be present. "}
请问这个应该怎么传参数,谢谢
传参参数格式错误