设置装置cmdid短信返回错误的bug

serial
liuguijing 1 year ago
parent 4445591a12
commit 749a88bd2d

@ -136,7 +136,6 @@ public class SimUtil {
int mAbsHeartbeatTime = 0;
mAbsHeartbeatTime = absHeartbeats.get(i);
int hour = mAbsHeartbeatTime / 60;
// int leftsecond = mAbsHeartbeatTime % 60;
int minute = mAbsHeartbeatTime % 60;
sendmessage += "," + hour + "," + minute;
}
@ -193,10 +192,10 @@ public class SimUtil {
}
sendmessage = content + menssageBack;
} else if (content.contains(SmsTypeEnum.GET_OPERATE_URL.value())) {
sendtype = SmsTypeEnum.GET_OPERATE.value();
sendtype = SmsTypeEnum.GET_OPERATE_URL.value();
ifmessageCorrect = true;
String mntnServer = UpdateSysConfigUtil.getMntnServer(context);
sendmessage = SmsTypeEnum.GET_OPERATE + "=" + mntnServer;
sendmessage = SmsTypeEnum.GET_OPERATE_URL + "=" + mntnServer;
} else if (content.contains(SmsTypeEnum.UPDATE.value())) {
sendtype = SmsTypeEnum.UPDATE.value();
String[] split1 = StringUtils.splitString1(content);
@ -216,6 +215,7 @@ public class SimUtil {
sendtype = SmsTypeEnum.SET_CMDID.value();
String[] split1 = StringUtils.splitString1(content);
if (split1 != null && split1.length > 1) {
ifmessageCorrect = true;
String cmdid = split1[1];
UpdateSysConfigUtil.setCmdid(context, cmdid);
}

Loading…
Cancel
Save