|
@@ -82,7 +82,8 @@ public class IrsManage { |
|
|
public Object itemBasicInfoList(String startDate, String endDate, Integer pageSize, Integer pageNum) { |
|
|
public Object itemBasicInfoList(String startDate, String endDate, Integer pageSize, Integer pageNum) { |
|
|
long timestamp = System.currentTimeMillis(); |
|
|
long timestamp = System.currentTimeMillis(); |
|
|
String sign = MD5.create().digestHex(appKey + appSecret + timestamp); |
|
|
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("requestTime", String.valueOf(timestamp)); |
|
|
request.header("sign", sign); |
|
|
request.header("sign", sign); |
|
|
request.header("appKey", appKey); |
|
|
request.header("appKey", appKey); |
|
@@ -121,7 +122,8 @@ public class IrsManage { |
|
|
public Object itemBasicInfoDetail(String rowGuid) { |
|
|
public Object itemBasicInfoDetail(String rowGuid) { |
|
|
long timestamp = System.currentTimeMillis(); |
|
|
long timestamp = System.currentTimeMillis(); |
|
|
String sign = MD5.create().digestHex(appKey + appSecret + timestamp); |
|
|
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("requestTime", String.valueOf(timestamp)); |
|
|
request.header("sign", sign); |
|
|
request.header("sign", sign); |
|
|
request.header("appKey", appKey); |
|
|
request.header("appKey", appKey); |
|
|