Bladeren bron

获取天气添加日志

tags/v1.2.0^2
wanjing 1 jaar geleden
bovenliggende
commit
45b2542230
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. +3
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java

+ 3
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java Bestand weergeven

@@ -223,7 +223,9 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper,
@Override
public AirWeatherVO getWeather(Integer airportId) throws ServiceException {
log.info("获取天气信息");
log.info("获取天气信息11111");
log.info("获取天气信息, tenantId={}", ShiroUtils.getTenantId());
log.info("获取天气信息22222");
Tenant tenant = tenantMapper.selectById(ShiroUtils.getTenantId());
log.info("获取天气信息, tenant={}", tenant);
log.info("获取天气信息, airportUrl={}", tenant.getAirportUrl());
@@ -252,7 +254,7 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper,
} catch (Exception e) {
log.info("获取天气信息异常,url={}", url);
log.info("获取天气信息异常,param={}", param);
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "获取天气信息失败,请重试");
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "获取天气信息异常,请重试");
}
}


Laden…
Annuleren
Opslaan