xueyiming 7 miesięcy temu
rodzic
commit
071979f488

+ 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() {
         String apiUrl = "http://aigc-api.cybertogether.net/aigc/publish/LongArticleSystem/getAllLongArticleSystemPlan";
         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);
             Integer code = jsonObject.getInteger("code");
             if (code == 0) {