From 61dbf64da478ed957155a45192ff71e56e28303c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 30 六月 2025 18:11:58 +0800
Subject: [PATCH] 代码初始化

---
 server/system_service/src/main/java/com/doumee/core/utils/HttpsUtil.java |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/server/system_service/src/main/java/com/doumee/core/utils/HttpsUtil.java b/server/system_service/src/main/java/com/doumee/core/utils/HttpsUtil.java
index d0025db..920334e 100644
--- a/server/system_service/src/main/java/com/doumee/core/utils/HttpsUtil.java
+++ b/server/system_service/src/main/java/com/doumee/core/utils/HttpsUtil.java
@@ -101,15 +101,12 @@
             if(contentType != null){
                 connection.setRequestProperty("Content-Type", contentType);
             }
-
             connection.connect();
-
             if(data != null){
                 OutputStream outputStream = connection.getOutputStream();
                 outputStream.write(data.getBytes("utf-8"));
                 outputStream.close();
             }
-
             int responseCode = connection.getResponseCode();
             if (responseCode == HttpsURLConnection.HTTP_OK) {
                return  connection.getInputStream();
@@ -117,9 +114,7 @@
         } catch (Exception e) {
             e.printStackTrace();
         } finally {
-            if(connection != null){
-                connection.disconnect();
-            }
+
         }
         return null;
     }

--
Gitblit v1.9.3