opt:1.新增国际化准备工作。
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user