报告处理

This commit is contained in:
attiya 2025-11-13 15:43:25 +08:00
parent 82fd154968
commit 33ca5e1b11

View File

@ -37,7 +37,7 @@ public class ReoprtHandler {
public void reportHandler(JsonNode response) { public void reportHandler(JsonNode response) {
int c = response.get("c").asInt(); int c = response.get("c").asInt();
JsonNode param = response.get("param"); JsonNode param = response.get("param");
String deviceId = param.get("sn").asText(); String deviceId = param.get("SN").asText();
switch (c) { switch (c) {
case 56: case 56:
gpsMsgHandler(param, deviceId); gpsMsgHandler(param, deviceId);