|
@@ -115,6 +115,11 @@ public class MqttMsgDto {
|
|
public String getOpenNum() {
|
|
public String getOpenNum() {
|
|
if (r == null) return null;
|
|
if (r == null) return null;
|
|
String[] res = r.split("OMP");
|
|
String[] res = r.split("OMP");
|
|
|
|
+ if (res.length > 1) {
|
|
|
|
+ return res[1];
|
|
|
|
+ }
|
|
|
|
+ //兼容旧设备的IMEI格式
|
|
|
|
+ res=r.split("/");
|
|
return res.length > 1 ? res[1] : null;
|
|
return res.length > 1 ? res[1] : null;
|
|
}
|
|
}
|
|
}
|
|
}
|