优化请求资源不可用
This commit is contained in:
+10
-4
@@ -175,7 +175,9 @@ class GaoDeUtils {
|
||||
break;
|
||||
} else if (json && json.infocode && json.infocode == "10017") {
|
||||
// 所请求的资源不可用
|
||||
System.exit(1)
|
||||
//System.exit(1)
|
||||
Thread.sleep(60000)
|
||||
break;
|
||||
} else {
|
||||
break
|
||||
}
|
||||
@@ -253,7 +255,8 @@ class GaoDeUtils {
|
||||
Thread.sleep(60000)
|
||||
} else if (json && json.infocode && json.infocode == "10017") {
|
||||
// 所请求的资源不可用
|
||||
System.exit(1)
|
||||
//System.exit(1)
|
||||
Thread.sleep(60000)
|
||||
}
|
||||
return Collections.emptyList()
|
||||
}
|
||||
@@ -293,7 +296,8 @@ class GaoDeUtils {
|
||||
Thread.sleep(60000)
|
||||
} else if (json && json.infocode && json.infocode == "10017") {
|
||||
// 所请求的资源不可用
|
||||
System.exit(1)
|
||||
//System.exit(1)
|
||||
Thread.sleep(60000)
|
||||
}
|
||||
return Collections.emptyList()
|
||||
}
|
||||
@@ -350,7 +354,9 @@ class GaoDeUtils {
|
||||
break;
|
||||
} else if (json && json.infocode && json.infocode == "10017") {
|
||||
// 所请求的资源不可用
|
||||
System.exit(1)
|
||||
//System.exit(1)
|
||||
Thread.sleep(60000)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user