From 093b5aad4a2fec93a404bd86952072d895eeaf9b Mon Sep 17 00:00:00 2001 From: dzq Date: Mon, 16 Jun 2025 09:19:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0API=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=E4=BB=8EHTTP=E5=88=B0HTTPS=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将测试和生产代码中的API端点从http://192.168.8.33:8090更新为https://kvkk.cn,以使用更安全的HTTPS协议 --- .../com/agileboot/api/controller/AssetApiControllerTest.java | 2 +- .../com/agileboot/domain/asset/AssetApplicationService.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agileboot-api/src/test/java/com/agileboot/api/controller/AssetApiControllerTest.java b/agileboot-api/src/test/java/com/agileboot/api/controller/AssetApiControllerTest.java index 49fb29b..a9ce156 100644 --- a/agileboot-api/src/test/java/com/agileboot/api/controller/AssetApiControllerTest.java +++ b/agileboot-api/src/test/java/com/agileboot/api/controller/AssetApiControllerTest.java @@ -150,7 +150,7 @@ public class AssetApiControllerTest { // 2.发送POST请求 log.info("请求参数: {}", JSONUtil.toJsonStr(request)); - String res = HttpUtil.post("http://192.168.8.33:8090/api/receive/cabinet/consume/output", JSONUtil.toJsonStr(request)); + String res = HttpUtil.post("https://kvkk.cn/api/receive/cabinet/consume/output", JSONUtil.toJsonStr(request)); log.info("接口响应: {}", res); diff --git a/agileboot-domain/src/main/java/com/agileboot/domain/asset/AssetApplicationService.java b/agileboot-domain/src/main/java/com/agileboot/domain/asset/AssetApplicationService.java index 8b2d83d..e70c58c 100644 --- a/agileboot-domain/src/main/java/com/agileboot/domain/asset/AssetApplicationService.java +++ b/agileboot-domain/src/main/java/com/agileboot/domain/asset/AssetApplicationService.java @@ -222,7 +222,7 @@ public class AssetApplicationService { // 2.发送POST请求 log.info("consumeOutput 请求参数: {}", JSONUtil.toJsonStr(request)); - String res = HttpUtil.post("http://192.168.8.33:8090/api/receive/cabinet/consume/output", JSONUtil.toJsonStr(request)); + String res = HttpUtil.post("https://kvkk.cn/api/receive/cabinet/consume/output", JSONUtil.toJsonStr(request)); log.info("consumeOutput 接口响应: {}", res); ConsumeOutputResponse response = JSONUtil.toBean(res, ConsumeOutputResponse.class); @@ -264,7 +264,7 @@ public class AssetApplicationService { // 2.发送POST请求 log.info("consumeOutput 请求参数: {}", JSONUtil.toJsonStr(request)); - String res = HttpUtil.post("http://192.168.8.33:8090/api/receive/cabinet/consume/output", JSONUtil.toJsonStr(request)); + String res = HttpUtil.post("https://kvkk.cn/api/receive/cabinet/consume/output", JSONUtil.toJsonStr(request)); log.info("consumeOutput 接口响应: {}", res); ConsumeOutputResponse response = JSONUtil.toBean(res, ConsumeOutputResponse.class);