From b42ed0826f24d958c8527d919f63f694a9827454 Mon Sep 17 00:00:00 2001 From: wulin Date: Wed, 15 Nov 2023 19:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/box/websocket/api/command/AlarmClockActionCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/command/AlarmClockActionCommand.java b/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/command/AlarmClockActionCommand.java index 5e8668c..428552b 100644 --- a/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/command/AlarmClockActionCommand.java +++ b/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/command/AlarmClockActionCommand.java @@ -277,7 +277,7 @@ public class AlarmClockActionCommand extends ActionCommand implements IActionCom String[] p = v.split(":"); actionResp.setHour(Integer.parseInt(p[0])); actionResp.setMinute(Integer.parseInt(p[1])); - if(!alarm.getRepeat().equals(AlarmRepeatEnum.ONE.getCode())){ + if(alarm.getRepeat().equals(AlarmRepeatEnum.ONE.getCode())){ df = new SimpleDateFormat("yyyy-MM-dd"); v = df.format(alarm.getTime()); p = v.split("-");