| | |
| | | Map<String, String> headerMap = new HashMap<>(); |
| | | headerMap.put("appid", appId); |
| | | |
| | | String str=""; |
| | | String str="https://uu-api.imashuo.com/member/wx/get-access?"+ "appid=" + appId + |
| | | "×tamp=" + uuLoginVO.getTimestamp() + |
| | | "&sign=" + uuLoginVO.getSign() + |
| | | "&mobile=" + uuLoginVO.getMobile(); |
| | | |
| | | if(!StringUtils.isEmpty(uuLoginVO.getProvince())) |
| | | { |
| | | str=str+"&province=" + uuLoginVO.getProvince(); |
| | |
| | | } |
| | | |
| | | // 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("https://uu-api.imashuo.com/member/wx/get-access?" + |
| | | "appid=" + appId + |
| | | "×tamp=" + uuLoginVO.getTimestamp() + |
| | | "&sign=" + uuLoginVO.getSign() + |
| | | "&mobile=" + uuLoginVO.getMobile() + |
| | | str , |
| | | 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); |