From 32c5e485accb4d93a6ef5ec4d41c3e29df6cece2 Mon Sep 17 00:00:00 2001
From: haungxing <1203316822@qq.com>
Date: Wed, 3 Jul 2024 17:21:30 +0800
Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=9A=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E6=BA=90=E4=BE=9D=E8=B5=96=E7=A7=BB=E8=87=B3=E5=AD=90=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hzims-service/hzims-big-model/pom.xml | 1 +
.../main/java/com/hnac/hzims/bigmodel/utils/RequestClientUtil.java | 4 +++-
pom.xml | 5 -----
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/hzims-service/hzims-big-model/pom.xml b/hzims-service/hzims-big-model/pom.xml
index e1ebe29..4075f1f 100644
--- a/hzims-service/hzims-big-model/pom.xml
+++ b/hzims-service/hzims-big-model/pom.xml
@@ -82,6 +82,7 @@
com.baomidou
dynamic-datasource-spring-boot-starter
+ 2.5.6
diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/utils/RequestClientUtil.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/utils/RequestClientUtil.java
index 229fc12..ef31b6d 100644
--- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/utils/RequestClientUtil.java
+++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/utils/RequestClientUtil.java
@@ -25,9 +25,11 @@ public class RequestClientUtil {
* @param body 传参body
*/
public static void postCall(String url, Map body) {
+ log.info("开始远程调用{}接口",url);
HttpResponse response = HttpRequest.post(url).body(JSON.toJSONString(body)).execute();
+ log.info("远程调用{}接口结束",url);
Assert.isTrue(response.getStatus() == HttpServletResponse.SC_OK, () -> {
- throw new ServiceException("远程调用大模型接口" + url + "失败!");
+ throw new ServiceException("远程调用接口" + url + "失败!");
});
}
diff --git a/pom.xml b/pom.xml
index 31b5875..fee8f9d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -212,11 +212,6 @@
easypoi-spring-boot-starter
${easpoi.version}
-
- com.baomidou
- dynamic-datasource-spring-boot-starter
- 2.5.6
-