Commit 5a076196 by caojingji

修改调用网安接口的doGet方法

parent 5fe9682d
......@@ -27,7 +27,19 @@ public class HttpUtil {
* @return
*/
public static String getWaData(String url){
String result = HttpUtil.doGet(url);
String result = null;
try{
result = HttpUtil.doGet(url);
int i = 1;
while ((StringUtil.ckeckEmpty(result) || result.startsWith("R")) && i < 2){
Thread.sleep(1000);
result = HttpUtil.doGet(url);
i++;
}
return result;
}catch (Exception e){
e.printStackTrace();
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment