| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | Map<String, String> headerMap = new HashMap<>(); |
| | | Map<String, Object> headerMap = new HashMap<>(); |
| | | headerMap.put("appid", appId); |
| | | |
| | | String str="https://uu-api.imashuo.com/member/wx/get-access?"+ "appid=" + appId + |
| | |
| | | str=str+"&couponId=" + uuLoginVO.getCouponId(); |
| | | } |
| | | |
| | | |
| | | return R.ok(str); |
| | | |
| | | // String resultJson = HttpClientUtil.get("https://uu-api.imashuo.com/member/wx/get-acces.s?province=" + uuLoginVO.getProvince() + "&city=" + uuLoginVO.getCity() + "&area=" + uuLoginVO.getArea() + "&appid=" + appId + "×tamp=" + uuLoginVO.getTimestamp() + "&sign=" + uuLoginVO.getSign() + "&mobile=" + uuLoginVO.getMobile() + "&couponId=" + uuLoginVO.getCouponId(), headerMap, null); |
| | | // String resultJson = HttpClientUtil.get(str ,headerMap, null); |
| | | // JSONObject result = JSON.parseObject(resultJson); |
| | | // if (result.get("status").equals(1)) { |
| | | // return R.ok(result.get("data")+" "+resultJson); |
| | | // } |
| | | // return R.fail("信息错误"+" "+resultJson); |
| | | String resultJson = null; |
| | | try { |
| | | resultJson = HttpClientUtil.httpGet(str ,headerMap, null); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | JSONObject result = JSON.parseObject(resultJson); |
| | | if (result.get("status").equals(1)) { |
| | | return R.ok(result.get("data")+" "+resultJson); |
| | | } |
| | | return R.fail("信息错误"+" "+resultJson); |
| | | } |
| | | |
| | | @Override |