Commit 8f9bdae6fe3823196c2f8cbfc30d2de0a9126aa1
1 parent
9187231930
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 6 additions and 10 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HttpClientUtil.java
View file @
8f9bdae
... | ... | @@ -178,16 +178,12 @@ |
178 | 178 | public static void main(String[] args) throws Exception { |
179 | 179 | |
180 | 180 | long start = System.currentTimeMillis(); |
181 | - Map<String,String> params = new HashMap<String, String>(); | |
182 | - params.put("personId","ssss"); | |
183 | - params.put("couponTypes","bbb"); | |
184 | - String s = doPostSSL("https://dev-rp-api.healthbaby.com.cn/coupon/invalid",params , "utf-8"); | |
181 | + String s = doPost("https://area-qhd-api.healthbaby.com.cn:18019/findSyncData", new HashMap<String, String>(), "utf-8"); | |
185 | 182 | |
186 | - System.out.print(s); | |
187 | -// List<SyncDataModel> list = JsonUtil.toList(s, SyncDataModel.class); | |
188 | -// long end = System.currentTimeMillis(); | |
189 | -// System.out.print(end -start); | |
190 | -// System.out.println(s); | |
183 | + List<SyncDataModel> list = JsonUtil.toList(s, SyncDataModel.class); | |
184 | + long end = System.currentTimeMillis(); | |
185 | + System.out.print(end -start); | |
186 | + System.out.println(s); | |
191 | 187 | } |
192 | 188 | } |