| | |
| | | storeConfigService.saveBatch(storeConfigs); |
| | | |
| | | |
| | | // 添加门店 |
| | | HashMap<String, String> map1 = new HashMap<>(); |
| | | map1.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | map1.put("name",tStore.getName()); |
| | | map1.put("short_name",tStore.getName()); |
| | | map1.put("location",tStore.getCity()); |
| | | map1.put("address",tStore.getAddress()); |
| | | map1.put("telephone",tStore.getPhone()); |
| | | map1.put("linkman",userName); |
| | | map1.put("business_time","[{\"start_time\":\""+tStore.getStartTime()+"\",\"close_time\":\""+tStore.getEndTime()+"\"}]"); |
| | | map1.put("logo",tStore.getCoverDrawing()); |
| | | map1.put("remark",tStore.getIntroduce()); |
| | | map1.put("lat",tStore.getLat()); |
| | | map1.put("lng",tStore.getLon()); |
| | | map1.put("space_id",tStore.getId().toString()); |
| | | String result = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | System.out.println(result); |
| | | // // 添加门店 |
| | | // HashMap<String, String> map1 = new HashMap<>(); |
| | | // map1.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | // map1.put("name",tStore.getName()); |
| | | // map1.put("short_name",tStore.getName()); |
| | | // map1.put("location",tStore.getCity()); |
| | | // map1.put("address",tStore.getAddress()); |
| | | // map1.put("telephone",tStore.getPhone()); |
| | | // map1.put("linkman",userName); |
| | | // map1.put("business_time","[{\"start_time\":\""+tStore.getStartTime()+"\",\"close_time\":\""+tStore.getEndTime()+"\"}]"); |
| | | // map1.put("logo",tStore.getCoverDrawing()); |
| | | // map1.put("remark",tStore.getIntroduce()); |
| | | // map1.put("lat",tStore.getLat()); |
| | | // map1.put("lng",tStore.getLon()); |
| | | // map1.put("space_id",tStore.getId().toString()); |
| | | // String result = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | // System.out.println(result); |
| | | |
| | | |
| | | return new SuccessTip<>(); |