chenjiahe
2022-04-11 39f96c9470265bd270e747922ada601749ee8576
src/main/java/com/hz/util/http/HttpHzUtil.java
@@ -79,8 +79,13 @@
                os.write(bodyData.getBytes(CHARSET));
            }
            httpHzResponse.setCode(con.getResponseCode()+"");
            httpHzResponse.setData(IOUtils.toString(con.getInputStream(), CHARSET));
            if(HttpHzResponse.CODE_200.equals(con.getResponseCode())){
                httpHzResponse.setCode(con.getResponseCode()+"");
                httpHzResponse.setData(IOUtils.toString(con.getInputStream(), CHARSET));
            }else{
                httpHzResponse.setCode(con.getResponseCode()+"");
                httpHzResponse.setMsg(IOUtils.toString(con.getErrorStream(), CHARSET));
            }
        } catch (Exception var14) {
            var14.printStackTrace();