lidongdong
2024-04-01 c4448b1e8a1bc361aa2c5b07972dba323465e719
修改西区uu洗车登录接口500 5
1个文件已修改
22 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
@@ -3489,7 +3489,7 @@
        } 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 +
@@ -3518,16 +3518,18 @@
            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 + "&timestamp=" + 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