Просмотр исходного кода

Merge remote-tracking branch 'origin/saas-api' into saas-api

xgb 2 недель назад
Родитель
Сommit
da044068c4

+ 6 - 6
fs-company/pom.xml

@@ -106,12 +106,12 @@
             <groupId>com.fs</groupId>
             <artifactId>fs-service</artifactId>
         </dependency>
-        <!-- fs-admin-saas 提供 his/course/billing 等控制器,saasadminui 需要这些接口 -->
-        <dependency>
-            <groupId>com.fs</groupId>
-            <artifactId>fs-admin-saas</artifactId>
-            <version>${project.version}</version>
-        </dependency>
+<!--        &lt;!&ndash; fs-admin-saas 提供 his/course/billing 等控制器,saasadminui 需要这些接口 &ndash;&gt;-->
+<!--        <dependency>-->
+<!--            <groupId>com.fs</groupId>-->
+<!--            <artifactId>fs-admin-saas</artifactId>-->
+<!--            <version>${project.version}</version>-->
+<!--        </dependency>-->
 
         <dependency>
             <groupId>com.baomidou</groupId>

+ 3 - 1
fs-company/src/main/java/com/fs/FsCompanyApplication.java

@@ -52,7 +52,9 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
             // that map to same paths as fs-admin-saas's com.fs.company.controller.chat.* etc.
             "com\\.fs\\.company\\.controller\\.chat\\..*",
             "com\\.fs\\.company\\.controller\\.hisStore\\..*",
-            "com\\.fs\\.company\\.controller\\.transfer\\..*"
+            "com\\.fs\\.company\\.controller\\.transfer\\..*",
+            // Exclude fs-admin-saas his controllers that conflict with fs-company's own controllers
+            "com\\.fs\\.his\\.controller\\.FsRedPacketController"
         })
     }
 )

+ 2 - 9
fs-service/src/main/java/com/fs/fastgptApi/util/HttpUtil.java

@@ -65,15 +65,8 @@ public class HttpUtil {
     }
 
     public static String sendPost(Object param, String url, String key) {
-        // 使用 CloseableHttpClient,设置超时
-        RequestConfig requestConfig = RequestConfig.custom()
-                .setConnectTimeout(30000)       // 连接超时30秒
-                .setSocketTimeout(120000)       // 读取超时120秒(AI响应可能较慢)
-                .setConnectionRequestTimeout(30000)
-                .build();
-        try (CloseableHttpClient httpClient = HttpClients.custom()
-                .setDefaultRequestConfig(requestConfig)
-                .build()) {
+        // 使用 CloseableHttpClient
+        try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
             URIBuilder builder = new URIBuilder(url);
             URI uri = builder.build();