瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.1.0^2
chengwang 1 年之前
父節點
當前提交
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) {

Loading…
取消
儲存