| | |
| | | //图片地址 |
| | | String data = result.getString("data"); |
| | | if(ToolUtil.isEmpty(data)){ |
| | | if(num == 12){ |
| | | if(num == 60){ |
| | | log.error(result.getString("msg")); |
| | | throw new RuntimeException("【2018年协议车辆获取拍摄图片】12次(1分钟)失败:" + execute.body()); |
| | | throw new RuntimeException("【2018年协议车辆获取拍摄图片】60次(1分钟)失败:" + execute.body()); |
| | | } |
| | | num++; |
| | | try { |
| | | Thread.sleep(5000); |
| | | Thread.sleep(1000); |
| | | } catch (InterruptedException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | |
| | | //图片地址 |
| | | String data = result.getString("data"); |
| | | if(ToolUtil.isEmpty(data)){ |
| | | if(num == 12){ |
| | | if(num == 60){ |
| | | log.error(result.getString("msg")); |
| | | throw new RuntimeException("【2023年协议车辆获取拍摄图片】12次(1分钟)失败:" + execute.body()); |
| | | throw new RuntimeException("【2023年协议车辆获取拍摄图片】60次(1分钟)失败:" + execute.body()); |
| | | } |
| | | num++; |
| | | try { |
| | | Thread.sleep(5000); |
| | | Thread.sleep(1000); |
| | | } catch (InterruptedException e) { |
| | | throw new RuntimeException(e); |
| | | } |