From ef80f21877efca82d4a9964e5afbc9af080667ee Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Wed, 28 Aug 2024 09:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E9=A1=B9=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AFIRS=E6=8E=A5=E5=8F=A3=E8=AE=BE=E7=BD=AE=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ningdatech/kqapi/irs/manage/IrsManage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kq-vas-api/src/main/java/com/ningdatech/kqapi/irs/manage/IrsManage.java b/kq-vas-api/src/main/java/com/ningdatech/kqapi/irs/manage/IrsManage.java index 3373c20..a5acde2 100644 --- a/kq-vas-api/src/main/java/com/ningdatech/kqapi/irs/manage/IrsManage.java +++ b/kq-vas-api/src/main/java/com/ningdatech/kqapi/irs/manage/IrsManage.java @@ -82,7 +82,8 @@ public class IrsManage { public Object itemBasicInfoList(String startDate, String endDate, Integer pageSize, Integer pageNum) { long timestamp = System.currentTimeMillis(); String sign = MD5.create().digestHex(appKey + appSecret + timestamp); - HttpRequest request = HttpUtil.createPost(itemBasicInfoListUrl); + // 设置读取和连接超时时间为60秒 + HttpRequest request = HttpUtil.createPost(itemBasicInfoListUrl).timeout(60000); request.header("requestTime", String.valueOf(timestamp)); request.header("sign", sign); request.header("appKey", appKey); @@ -121,7 +122,8 @@ public class IrsManage { public Object itemBasicInfoDetail(String rowGuid) { long timestamp = System.currentTimeMillis(); String sign = MD5.create().digestHex(appKey + appSecret + timestamp); - HttpRequest request = HttpUtil.createPost(itemBasicInfoDetailUrl); + // 设置读取和连接超时时间为60秒 + HttpRequest request = HttpUtil.createPost(itemBasicInfoDetailUrl).timeout(60000); request.header("requestTime", String.valueOf(timestamp)); request.header("sign", sign); request.header("appKey", appKey);