diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/sms/SimUtil.java b/mpmaster/src/main/java/com/xypower/mpmaster/sms/SimUtil.java index f297a813..d26e6316 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/sms/SimUtil.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/sms/SimUtil.java @@ -42,7 +42,6 @@ public class SimUtil { //自定义ACTION常数 作为广播的IntentFilter识别常数 public static String SMS_SEND_ACTION = "com.xypower.mpmaster.SMS_SEND_ACTION"; - public static String SMSTYPE = "smstype"; public static String SMSIFCORRECT = "smsifcorrect"; @@ -465,7 +464,9 @@ public class SimUtil { UpdateSysConfigUtil.clearHistoryLogs(context); sendmessage = getSendString(content, ifmessageCorrect); } - sendSms(context, slot, sender, sendmessage, sendtype, ifmessageCorrect); + if (ifmessageCorrect) { + sendSms(context, slot, sender, sendmessage, sendtype, ifmessageCorrect); + } } }