From 65c858ba1b58df5475122111d7dcc4bc3f9be698 Mon Sep 17 00:00:00 2001 From: liuguijing <123456> Date: Tue, 14 May 2024 09:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E8=BF=90?= =?UTF-8?q?=E7=BB=B4ip=E5=92=8C=E7=AB=AF=E5=8F=A3=E7=9A=84=E8=BF=94?= =?UTF-8?q?=E5=9B=9Ebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xypower/mpmaster/sms/SimUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);