Commit e55facc4b372c3f5b05fbacef6bf84979e1c25bb

Authored by liquanyu
1 parent b254f105ff

update code

Showing 2 changed files with 3 additions and 4 deletions

platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java View file @ e55facc
... ... @@ -180,7 +180,7 @@
180 180 map.put("page","1");
181 181 map.put("limit","10");
182 182 long start = System.currentTimeMillis();
183   - String s = doGet("https://area-lc-api.healthbaby.com.cn:55581/getNoSendLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba");
  183 + String s = doGet("https://area-dz-api.healthbaby.com.cn:12356/getNoSendLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba");
184 184  
185 185 long end = System.currentTimeMillis();
186 186 System.out.print(end -start);
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponPrintController.java View file @ e55facc
... ... @@ -191,14 +191,13 @@
191 191 * @param request
192 192 * @return
193 193 */
194   - @RequestMapping(method = RequestMethod.POST,value = "/qhdCouponUse")
  194 + @RequestMapping(method = RequestMethod.GET,value = "/qhdCouponUse")
195 195 @ResponseBody
196 196 @TokenRequired
197 197 public BaseObjectResponse qhdCouponUse(HttpServletRequest request,
198 198 @RequestParam(required = true)String code){
199 199  
200   - LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
201   - String hospitalId = autoMatchFacade.getHospitalId(loginState.getId());
  200 + String hospitalId = autoMatchFacade.getHospitalId(getUserId(request));
202 201  
203 202 //获取优惠劵类型
204 203 Map<String,String> param = new HashMap<>();