|
|
@ -432,7 +432,7 @@ public class DhDeviceUtil { |
|
|
|
Map<String, String> paramsMap = new HashMap<>(4); |
|
|
|
DhChannelPageFormDTO dto = new DhChannelPageFormDTO(); |
|
|
|
dto.setPageSize(100); |
|
|
|
dto.setPageSize(1); |
|
|
|
dto.setPageNum(1); |
|
|
|
|
|
|
|
String data = HttpClientManager.getInstance().sendPostByJSONAndHeader(url, JSON.toJSONString(dto), paramsMap).getData(); |
|
|
|
|
|
|
@ -456,7 +456,7 @@ public class DhDeviceUtil { |
|
|
|
|
|
|
|
List<DhChannelResultDTO> list = new ArrayList<>(); |
|
|
|
for (int i = 0; i < jsonArray.size(); i++) { |
|
|
|
JSONObject jsonItem = jsonArray.getJSONObject(0); |
|
|
|
JSONObject jsonItem = jsonArray.getJSONObject(i); |
|
|
|
DhChannelResultDTO channel = new DhChannelResultDTO(); |
|
|
|
channel.setPrivilegeType("1"); |
|
|
|
channel.setResouceCode(jsonItem.get("channelCode").toString()); |
|
|
|