diff --git a/src/main/java/com/ctgu/pro_eld_mqtt_compare/api/ApiService.java b/src/main/java/com/ctgu/pro_eld_mqtt_compare/api/ApiService.java index 5edcfa2..81ccc44 100644 --- a/src/main/java/com/ctgu/pro_eld_mqtt_compare/api/ApiService.java +++ b/src/main/java/com/ctgu/pro_eld_mqtt_compare/api/ApiService.java @@ -48,6 +48,7 @@ public class ApiService { ParameterizedTypeReference> typeRef = (ParameterizedTypeReference>) tableObjectMapping.get(getInfoVO.getTableName()); if (typeRef == null) { // throw new IllegalArgumentException("不支持该表名: " + getInfoVO.getTableName()); + log.error("Pakistan API - 不支持该表名 : {}", getInfoVO.getTableName()); return Mono.empty(); } @@ -62,7 +63,7 @@ public class ApiService { .retrieve() .bodyToMono(typeRef) .onErrorResume(e -> { - log.warn("WebClient 请求 eldData 失败,错误: {}", e.getMessage()); + log.warn("Pakistan API - WebClient 请求 eldData 失败,错误: {}", e.getMessage()); return Mono.just(Collections.emptyList()); }); @@ -73,7 +74,9 @@ public class ApiService { public Mono> getInfoPro(Integer customerId, String tableName) { ParameterizedTypeReference> typeRef = (ParameterizedTypeReference>) tableObjectMapping.get(tableName); if (typeRef == null) { - throw new IllegalArgumentException("Unsupported table name: " + tableName); +// throw new IllegalArgumentException("不支持该表名: " + tableName); + log.error("Pro API - 不支持该表名 : {}", tableName); + return Mono.empty(); } return webClientBuilder.baseUrl("https://eldapp.anytrek.app") @@ -88,7 +91,7 @@ public class ApiService { .retrieve() .bodyToMono(typeRef) .onErrorResume(e -> { - log.warn("WebClient 请求 eldData 失败,错误: {}", e.getMessage()); + log.warn("Pro API - WebClient 请求 eldData 失败,错误: {}", e.getMessage()); return Mono.just(Collections.emptyList()); }); }