xueyiming преди 11 месеца
родител
ревизия
071979f488
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/remote/impl/AigcServiceImpl.java

+ 2 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/remote/impl/AigcServiceImpl.java

@@ -27,7 +27,8 @@ public class AigcServiceImpl implements AigcService {
     public List<LongArticleSystemPlan> getAllLongArticleSystemPlan() {
     public List<LongArticleSystemPlan> getAllLongArticleSystemPlan() {
         String apiUrl = "http://aigc-api.cybertogether.net/aigc/publish/LongArticleSystem/getAllLongArticleSystemPlan";
         String apiUrl = "http://aigc-api.cybertogether.net/aigc/publish/LongArticleSystem/getAllLongArticleSystemPlan";
         try {
         try {
-            String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl);
+            HttpPoolClientUtil httpPoolClientUtil = HttpClientUtil.create(5000, 20000, 5, 10, 3, 3000);
+            String res = httpPoolClientUtil.post(apiUrl);
             JSONObject jsonObject = JSON.parseObject(res);
             JSONObject jsonObject = JSON.parseObject(res);
             Integer code = jsonObject.getInteger("code");
             Integer code = jsonObject.getInteger("code");
             if (code == 0) {
             if (code == 0) {