fix: 调整版本字段判断

dev
huangfeng 1 year ago
parent da64cd2209
commit ba735a34a9

@ -58,11 +58,11 @@ public class RawReportUtil {
} else if (str.startsWith("卡2:")) { } else if (str.startsWith("卡2:")) {
map.put("simcard2", str.replaceFirst("卡2:", "")); map.put("simcard2", str.replaceFirst("卡2:", ""));
} else if (str.startsWith("mcu:")) { } else if (str.startsWith("mcu:")) {
map.put("mcu", str.replaceFirst("mcu:", "")); map.put("mcuVersion", str.replaceFirst("mcu:", ""));
} else if (str.startsWith("ai:")) { } else if (str.startsWith("ai:")) {
map.put("aiVersion", str.replaceFirst("ai:", "")); map.put("aiVersion", str.replaceFirst("ai:", ""));
} else if (str.startsWith("cam:")) { } else if (str.startsWith("cam:")) {
map.put("cameraService", str.replaceFirst("cam:", "")); map.put("cameraVersion", str.replaceFirst("cam:", ""));
} else if (str.startsWith("主板温度:")) { } else if (str.startsWith("主板温度:")) {
map.put("mainBoardTmp", str.replaceFirst("主板温度:", "")); map.put("mainBoardTmp", str.replaceFirst("主板温度:", ""));
} else if (str.startsWith("电池温度:")) { } else if (str.startsWith("电池温度:")) {

@ -72,7 +72,7 @@ public class ActivitiesServiceImpl implements ActivitiesService {
if (t != null) { if (t != null) {
record.setTermId(t.getId()); record.setTermId(t.getId());
} else { } else {
throw new Exception(term.getCmdid() + "装置不存在"); throw new ApiException(term.getCmdid() + "装置不存在");
} }
} else { } else {
throw new Exception("装置列表信息异常"); throw new Exception("装置列表信息异常");
@ -113,7 +113,7 @@ public class ActivitiesServiceImpl implements ActivitiesService {
if (t != null) { if (t != null) {
record.setTermId(t.getId()); record.setTermId(t.getId());
} else { } else {
throw new Exception(term.getCmdid() + "装置不存在"); throw new ApiException(term.getCmdid() + "装置不存在");
} }
} else { } else {
throw new Exception("装置列表信息异常"); throw new Exception("装置列表信息异常");

Loading…
Cancel
Save