请求参数:
{
"jsonStr":{
"clientFlag": "84:21:F1:96:A5:00",
"command": "indexQuery",
"params": {
"itemList": [
{
"class": "mpeg",
"col": "tsBitrate"
},
{
"class": "mpeg",
"col": "tsMlr"
},
{
"class": "has",
"col": "downRate"
}
]
}
}
}
未获取到jsonStr值:
public Object userInfo(@Param("..") SouthInputParam parm) throws Exception {
String paramsAsJson=parm.getJsonStr();
Map<String, Object> params = new HashMap<>();
params.put("iptvNo", "itv047180010923");
if(parm.getAreaCode()==null)
throw new Exception("param is null");
String url =Webs.Config.get("node-stb-probe");
Map<String, String> headers=new HashMap<>();
headers.put("Content-Type", "application/json");
Header header=Header.create(headers);
Request request=Request.create(url,METHOD.POST, paramsAsJson, header);
String rcontent = Sender.create(request)
.send()
.getContent();
System.out.println(rcontent);
return parm;
}