From e820839f33bdc7eda7a22561a69d2dfe0e3ddad3 Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期五, 07 三月 2025 20:56:28 +0800
Subject: [PATCH] 修改堆垛机站出库到出库站

---
 src/main/java/com/zy/common/utils/HttpHandler.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/common/utils/HttpHandler.java b/src/main/java/com/zy/common/utils/HttpHandler.java
index 70adcc7..804d9e9 100644
--- a/src/main/java/com/zy/common/utils/HttpHandler.java
+++ b/src/main/java/com/zy/common/utils/HttpHandler.java
@@ -16,7 +16,7 @@
 public class HttpHandler {
 
     private static final Integer DEFAULT_TIMEOUT_SECONDS = 5;
-    private static final MediaType MEDIA_TYPE = MediaType.parse("application/json;charset=utf-8");
+    private static final MediaType MEDIA_TYPE = MediaType.parse("application/json");
 
     private String uri;
     private String path;
@@ -74,13 +74,13 @@
             }
             FormBody body = builder.build();
             request = headerBuilder
-                    .url((https?"https://":"http://")+uri+path)
+                    .url((https?"https://":"https://")+uri+path)
                     .post(body)
                     .build();
         } else {
             RequestBody body = RequestBody.create(MEDIA_TYPE, json);
-            Request.Builder builder = headerBuilder.url((https?"https://":"http://")+uri+path);
-            builder.header("Content-Type", "application/json;charset=UTF-8");
+            Request.Builder builder = headerBuilder.url((https?"https://":"https://")+uri+path);
+            builder.header("Content-Type", "application/json");
             request = builder.post(body).build();
 
         }

--
Gitblit v1.9.1