优化请求资源不可用

This commit is contained in:
Jian Shen
2022-05-26 13:38:48 +08:00
parent cfa7fa9e7e
commit df81563979
@@ -175,7 +175,9 @@ class GaoDeUtils {
break; break;
} else if (json && json.infocode && json.infocode == "10017") { } else if (json && json.infocode && json.infocode == "10017") {
// 所请求的资源不可用 // 所请求的资源不可用
System.exit(1) //System.exit(1)
Thread.sleep(60000)
break;
} else { } else {
break break
} }
@@ -253,7 +255,8 @@ class GaoDeUtils {
Thread.sleep(60000) Thread.sleep(60000)
} else if (json && json.infocode && json.infocode == "10017") { } else if (json && json.infocode && json.infocode == "10017") {
// 所请求的资源不可用 // 所请求的资源不可用
System.exit(1) //System.exit(1)
Thread.sleep(60000)
} }
return Collections.emptyList() return Collections.emptyList()
} }
@@ -293,7 +296,8 @@ class GaoDeUtils {
Thread.sleep(60000) Thread.sleep(60000)
} else if (json && json.infocode && json.infocode == "10017") { } else if (json && json.infocode && json.infocode == "10017") {
// 所请求的资源不可用 // 所请求的资源不可用
System.exit(1) //System.exit(1)
Thread.sleep(60000)
} }
return Collections.emptyList() return Collections.emptyList()
} }
@@ -350,7 +354,9 @@ class GaoDeUtils {
break; break;
} else if (json && json.infocode && json.infocode == "10017") { } else if (json && json.infocode && json.infocode == "10017") {
// 所请求的资源不可用 // 所请求的资源不可用
System.exit(1) //System.exit(1)
Thread.sleep(60000)
break;
} }
} }
return result return result