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 78b195ec..047e29b9 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/sms/SimUtil.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/sms/SimUtil.java @@ -166,7 +166,7 @@ public class SimUtil { sendtype = SmsTypeEnum.GET_OPERATE.value(); ifmessageCorrect = true; int mntnMode = UpdateSysConfigUtil.getMntnMode(context); - sendmessage = SmsTypeEnum.GET_OPERATE + "=" + mntnMode; + sendmessage = SmsTypeEnum.GET_OPERATE.value() + "=" + mntnMode; } else if (content.contains(SmsTypeEnum.SET_OPERATE_URL.value())) { sendtype = SmsTypeEnum.SET_OPERATE_URL.value(); String[] split1 = StringUtils.splitString1(content); @@ -231,7 +231,7 @@ public class SimUtil { sendtype = SmsTypeEnum.GET_CMDID.value(); ifmessageCorrect = true; String cmdid = UpdateSysConfigUtil.getCmdid(context); - sendmessage = SmsTypeEnum.GET_OPERATE + "=" + cmdid; + sendmessage = SmsTypeEnum.GET_CMDID.value() + "=" + cmdid; } else if (content.contains(SmsTypeEnum.SET_IP.value())) { sendtype = SmsTypeEnum.SET_IP.value(); String[] split1 = StringUtils.splitString1(content); @@ -269,7 +269,7 @@ public class SimUtil { sendtype = SmsTypeEnum.GET_IP.value(); ifmessageCorrect = true; String ip = UpdateSysConfigUtil.getIP(context); - sendmessage = SmsTypeEnum.GET_IP + "=" + ip; + sendmessage = SmsTypeEnum.GET_IP.value() + "=" + ip; } else if (content.contains(SmsTypeEnum.SET_OSD.value())) { sendtype = SmsTypeEnum.SET_OSD.value(); String[] split1 = StringUtils.splitString1(content);