老设备 接口替换
This commit is contained in:
parent
7657965e6c
commit
d8399956cf
|
@ -57,12 +57,12 @@ public class EquTask {
|
|||
// List<ThDevice> equLists = thDeviceMapper.selectDeviceList(thDevice);
|
||||
// equLists.forEach(e->{
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
|
||||
token = "28e73f2d211f3ac211313a1aa61dc0c5";
|
||||
map.put("token",token);
|
||||
HttpResult result = OkHttps.sync("http://10.205.51.190:30100/device/getGasDeviceList?token={token}")
|
||||
.addPathPara(map)
|
||||
.addHeader("token", token)
|
||||
.get();
|
||||
.post();
|
||||
JSONObject vocByJson = result.getBody().toBean(JSONObject.class);
|
||||
System.out.println("---------------------------------"+vocByJson);
|
||||
JSONArray vocByArray = vocByJson.getJSONArray("data");
|
||||
|
|
Loading…
Reference in New Issue