| | |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | // public static void main(String[] args) { |
| | | //// HashMap<String, String> map = new HashMap<>(); |
| | | //// map.put("page","1"); |
| | | //// map.put("space_id","2010"); |
| | | //// // 获取门禁列表 |
| | | //// String s1 = HttpRequestUtil.getRequest |
| | | //// ("https://port.daowepark.com/v7/user_api/general/getDevice", map); |
| | | //// System.err.println(s1); |
| | | // |
| | | // HashMap<String, String> map = new HashMap<>(); |
| | | // map.put("page","1"); |
| | | // map.put("space_id","2010"); |
| | | // map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | // map.put("space_id","1"); |
| | | // map.put("device_id","1"); |
| | | // map.put("region_id","2010"); |
| | | // // 获取门禁列表 |
| | | // String s1 = HttpRequestUtil.getRequest |
| | | // ("https://try.daowepark.com/v7/user_api/general/getDevice", map); |
| | | // ("https://port.daowepark.com/v7/user_api/general/getDevice", map); |
| | | // System.err.println(s1); |
| | | |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | map.put("space_id","1"); |
| | | map.put("device_id","1"); |
| | | map.put("region_id","2010"); |
| | | // 获取门禁列表 |
| | | String s1 = HttpRequestUtil.getRequest |
| | | ("https://try.daowepark.com/v7/user_api/general/getDevice", map); |
| | | System.err.println(s1); |
| | | }; |
| | | // }; |
| | | /** |
| | | * 跳转到车辆管理首页 |
| | | */ |
| | |
| | | map1.put("remark",tStore.getIntroduce()); |
| | | map1.put("lat",tStore.getLat()); |
| | | map1.put("lng",tStore.getLon()); |
| | | String result = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | String result = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | System.out.println(result); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | |
| | | // mapSite.put("name",tStore.getName()); |
| | | // mapSite.put("space_id",tStore.getId().toString()); |
| | | // mapSite.put("area_id",tSite.getId().toString()); |
| | | // HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpaceArea", mapSite); |
| | | // HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addSpaceArea", mapSite); |
| | | // for (String s : tStore.getIds().split(",")) { |
| | | // HashMap<String, String> map = new HashMap<>(); |
| | | // map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | |
| | | // map.put("device_id",s); |
| | | // map.put("region_id",tSite.getId().toString()); |
| | | // // 添加门禁 |
| | | // String s1 = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addDevice", map); |
| | | // String s1 = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addDevice", map); |
| | | // System.out.println(s1); |
| | | // } |
| | | return new SuccessTip<>(); |