From 623b3a96b154e56ec7de33df115dde5f70429f73 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期一, 01 四月 2024 10:19:30 +0800 Subject: [PATCH] 修改西区uu洗车登录接口500 3 --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java index 9135199..94010fa 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java @@ -3492,7 +3492,11 @@ 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(); @@ -3515,13 +3519,7 @@ } // 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); -- Gitblit v1.7.1