|
|
|
@ -69,6 +69,14 @@ public class SimUtil {
|
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
|
sendtype = SmsTypeEnum.REBOOT2.value();
|
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
|
} else if (content.contains(SmsTypeEnum.RESTART_MP.value())) {
|
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
|
sendtype = SmsTypeEnum.RESTART_MP.value();
|
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
|
} else if (content.contains(SmsTypeEnum.RESTART_MPMST.value())) {
|
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
|
sendtype = SmsTypeEnum.RESTART_MPMST.value();
|
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
|
} else if (content.contains(SmsTypeEnum.SET_YW_SCHEDULE.value())) {
|
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
|
String[] split1 = StringUtils.splitString1(content);
|
|
|
|
@ -553,11 +561,24 @@ public class SimUtil {
|
|
|
|
|
int slot = -1;
|
|
|
|
|
Set<String> keySet = bundle.keySet();
|
|
|
|
|
for (String key : keySet) {
|
|
|
|
|
if (key.toLowerCase().contains("slot") || key.toLowerCase().contains("sim")) {
|
|
|
|
|
String value = bundle.getString(key, "-1");
|
|
|
|
|
if (value.equals("0") | value.equals("1") | value.equals("2")) {
|
|
|
|
|
slot = bundle.getInt(key, -1);
|
|
|
|
|
String lcKey = key.toLowerCase();
|
|
|
|
|
if (lcKey.contains("slot") || lcKey.contains("sim")) {
|
|
|
|
|
Object value = bundle.get(key);
|
|
|
|
|
if (value == null) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value instanceof Integer) {
|
|
|
|
|
Integer intVal = (Integer) value;
|
|
|
|
|
slot = intVal.intValue();
|
|
|
|
|
} else if (value instanceof String) {
|
|
|
|
|
String str = (String)value;
|
|
|
|
|
if (str.equals("0") | str.equals("1") | str.equals("2")) {
|
|
|
|
|
// slot = bundle.getInt(key, -1);
|
|
|
|
|
slot = Integer.parseInt(str);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|