From c5acc2e23b41ea5fc377507d609e737035d1598c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Fri, 13 Jun 2025 10:04:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=A0=E7=83=AD=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=EF=BC=8C=E5=88=A4=E6=96=AD=E9=A3=8E=E6=89=87=E7=8A=B6=E6=80=81?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E9=A3=8E=E6=89=87=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E4=B8=AD=E5=88=99=E5=85=B3=E9=97=AD=E9=A3=8E=E6=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iflytop/gd/app/command/control/HeatStartCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/iflytop/gd/app/command/control/HeatStartCommand.java b/src/main/java/com/iflytop/gd/app/command/control/HeatStartCommand.java index 60fcf66..db90f87 100644 --- a/src/main/java/com/iflytop/gd/app/command/control/HeatStartCommand.java +++ b/src/main/java/com/iflytop/gd/app/command/control/HeatStartCommand.java @@ -44,6 +44,10 @@ public class HeatStartCommand extends BaseCommandHandler { throw new AppException(ResultCode.CRAFT_RUNNING); } return runAsync(() -> { + if( deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).isFanOpen()){ + heatModuleService.fanClose(heatModuleCode);//加热前,尝试关闭风扇 + deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setFanOpen(false); + } heatModuleService.heatRodOpen(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleCode, temperature); deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setTargetTime(time); deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setHeatTemperature(temperature);