|
@@ -125,6 +125,7 @@ public class IrsManage { |
|
|
if (responseBody.contains("Read timed out")){ |
|
|
if (responseBody.contains("Read timed out")){ |
|
|
int retries = 3; |
|
|
int retries = 3; |
|
|
for (int i = 0; i < retries; i++) { |
|
|
for (int i = 0; i < retries; i++) { |
|
|
|
|
|
log.info("第{}次重试中......", i + 1); |
|
|
// 重新设置签名和时间戳 |
|
|
// 重新设置签名和时间戳 |
|
|
long timestamp = System.currentTimeMillis(); |
|
|
long timestamp = System.currentTimeMillis(); |
|
|
String sign = MD5.create().digestHex(appKey + appSecret + timestamp); |
|
|
String sign = MD5.create().digestHex(appKey + appSecret + timestamp); |
|
|