This commit is contained in:
weiz 2024-03-06 17:02:05 +08:00
parent efb6c5a756
commit 17df4fe014
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class RemoteRequestLogic extends BaseLogic
if (!empty($ambientTemperatureDevice)) {
$rangeData = self::requestRangeMonitorData($ambientTemperatureDevice);
if (!empty($rangeData)) {
$ambientTemperatureDevice['RangeMonitorData'] = $rangeData[1];
$ambientTemperatureDevice['RangeMonitorData'] = $rangeData[0];
} else {
$ambientTemperatureDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
}
@ -195,7 +195,7 @@ class RemoteRequestLogic extends BaseLogic
if (!empty($ambientHumidityDevice)) {
$rangeData = self::requestRangeMonitorData($ambientHumidityDevice);
if (!empty($rangeData)) {
$ambientHumidityDevice['RangeMonitorData'] = $rangeData[0];
$ambientHumidityDevice['RangeMonitorData'] = $rangeData[1];
} else {
$ambientHumidityDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
}