huanghongfa
2021-07-23 e4c2299a734788bbbd37d8870a42977569e95efe
修改bug
1个文件已修改
6 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/HttpClientUtil.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/HttpClientUtil.java
@@ -254,14 +254,14 @@
     */
    public static String get(String url, Map<String, String> headerMap) {
        // 请求地址,以及参数设置
        HttpGet get = new HttpGet(url);
        HttpPost post = new HttpPost(url);
        if (headerMap != null) {
            for (Map.Entry<String, String> entry : headerMap.entrySet()) {
                get.setHeader(entry.getKey(), entry.getValue());
                post.setHeader(entry.getKey(), entry.getValue());
            }
        }
        // 执行请求,获取相应
        return getRespString(get);
        return getRespString(post);
    }
    /**