opt:1.新增国际化准备工作。

This commit is contained in:
2026-02-04 09:37:08 +08:00
parent 67653cc200
commit 6c9c1c95e4
24 changed files with 474 additions and 108 deletions

View File

@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONObject;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.nl.api.schedule.map.api.ScheduleMapAPI;
import org.nl.config.language.LangProcess;
import org.nl.exception.BadRequestException;
import org.nl.monitor.map.dto.StationInfoDto;
import org.nl.monitor.map.service.MapMonitorService;
@@ -30,7 +31,7 @@ public class MapMonitorServiceImpl implements MapMonitorService {
public WebResponse queryCurrentMapPoint() {
HttpResponse httpResponse = scheduleMapAPI.queryCurrentMapPointInfo();
if (httpResponse == null || !httpResponse.isOk()){
throw new BadRequestException("获取调度当前地图点位信息失败");
throw new BadRequestException(LangProcess.msg("error_schedule_point"));
}
List<StationInfoDto> result = new ArrayList<>();
JSONArray jsonArray = JSONArray.parseArray(httpResponse.body());