fixed
This commit is contained in:
parent
efb6c5a756
commit
17df4fe014
|
@ -181,7 +181,7 @@ class RemoteRequestLogic extends BaseLogic
|
||||||
if (!empty($ambientTemperatureDevice)) {
|
if (!empty($ambientTemperatureDevice)) {
|
||||||
$rangeData = self::requestRangeMonitorData($ambientTemperatureDevice);
|
$rangeData = self::requestRangeMonitorData($ambientTemperatureDevice);
|
||||||
if (!empty($rangeData)) {
|
if (!empty($rangeData)) {
|
||||||
$ambientTemperatureDevice['RangeMonitorData'] = $rangeData[1];
|
$ambientTemperatureDevice['RangeMonitorData'] = $rangeData[0];
|
||||||
} else {
|
} else {
|
||||||
$ambientTemperatureDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
|
$ambientTemperatureDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
|
||||||
}
|
}
|
||||||
|
@ -195,7 +195,7 @@ class RemoteRequestLogic extends BaseLogic
|
||||||
if (!empty($ambientHumidityDevice)) {
|
if (!empty($ambientHumidityDevice)) {
|
||||||
$rangeData = self::requestRangeMonitorData($ambientHumidityDevice);
|
$rangeData = self::requestRangeMonitorData($ambientHumidityDevice);
|
||||||
if (!empty($rangeData)) {
|
if (!empty($rangeData)) {
|
||||||
$ambientHumidityDevice['RangeMonitorData'] = $rangeData[0];
|
$ambientHumidityDevice['RangeMonitorData'] = $rangeData[1];
|
||||||
} else {
|
} else {
|
||||||
$ambientHumidityDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
|
$ambientHumidityDevice['RangeMonitorData'] = [0,0,0,0,0,0,0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue