@@ -241,6 +241,7 @@ public class AddInspectionService { | |||
} | |||
String patrolLocation = GaodeUtil.getGaodeAddress(inspection.getStartLongitude(), inspection.getStartLatitude()); | |||
if (StringUtils.isEmpty(patrolLocation)) { | |||
log.info("调用高德接口返回地址为空"); | |||
return JsonResult.error(AddInspectionCodeEnum.CALL_AMAP_IS_FAILED.getCode(), AddInspectionCodeEnum.CALL_AMAP_IS_FAILED.getMsg()); | |||
} | |||
inspection.setPatrolLocation(patrolLocation); |
@@ -63,6 +63,8 @@ public class AddPilotTaskService { | |||
response = restTemplate.exchange(url, HttpMethod.POST, httpEntity, JsonResult.class); | |||
} catch (Exception e) { | |||
log.error("请求第三方响应失败,异常!"); | |||
log.error("请求飞手平台创建任务失败, url:{}", url); | |||
log.error("请求飞手平台创建任务失败, httpEntity:{}", httpEntity); | |||
return JsonResult.error("请求第三方响应失败"); | |||
} | |||
if (null == response || !response.hasBody() || response.getBody().getCode() != JsonResult.SUCCESS) { |