Commit 6d136e85a4126c719b552ebd1c34d7453b006459
1 parent
6bde356b9c
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 12 additions and 8 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponController.java
View file @
6d136e8
... | ... | @@ -114,8 +114,8 @@ |
114 | 114 | * @param personId |
115 | 115 | * @param couponTypes 要删除的类型 |
116 | 116 | */ |
117 | - @RequestMapping(method = RequestMethod.POST, value = "/invalid") | |
118 | - public void invalid(String personId, String couponTypes){ | |
117 | + @RequestMapping(method = RequestMethod.GET, value = "/invalid") | |
118 | + public void invalid(HttpServletRequest request,String personId, String couponTypes){ | |
119 | 119 | LOG.info("invalid>>> personId: {}, couponTypes: {} ", personId, couponTypes); |
120 | 120 | couponService.invalid(personId, couponTypes); |
121 | 121 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HttpClientUtil.java
View file @
6d136e8
... | ... | @@ -178,12 +178,16 @@ |
178 | 178 | public static void main(String[] args) throws Exception { |
179 | 179 | |
180 | 180 | long start = System.currentTimeMillis(); |
181 | - String s = doPost("https://area-qhd-api.healthbaby.com.cn:18019/findSyncData", new HashMap<String, String>(), "utf-8"); | |
181 | + Map<String,String> params = new HashMap<String, String>(); | |
182 | + params.put("personId","ssss"); | |
183 | + params.put("couponTypes","bbb"); | |
184 | + String s = doPost("https://dev-rp-api.healthbaby.com.cn/coupon/invalid",params , "utf-8"); | |
182 | 185 | |
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); | |
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); | |
187 | 191 | } |
188 | 192 | } |