Просмотр исходного кода

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.1.0^2
chengwang 1 год назад
Родитель
Сommit
b6f46ef87e
2 измененных файлов: 3 добавлений и 0 удалений
  1. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/add/AddInspectionService.java
  2. +2
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/pilot/AddPilotTaskService.java

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/add/AddInspectionService.java Просмотреть файл

@@ -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);

+ 2
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/pilot/AddPilotTaskService.java Просмотреть файл

@@ -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) {

Загрузка…
Отмена
Сохранить