From bc52b301656e2f20c93598489efd44cfce3c32e6 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 28 Feb 2024 10:51:25 +0800 Subject: [PATCH] fixed --- app/common/logic/RemoteRequestLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/logic/RemoteRequestLogic.php b/app/common/logic/RemoteRequestLogic.php index 892be79..8435e1e 100644 --- a/app/common/logic/RemoteRequestLogic.php +++ b/app/common/logic/RemoteRequestLogic.php @@ -18,8 +18,8 @@ class RemoteRequestLogic extends BaseLogic if (!empty($airDevice)) { $airMonitor = self::requestMqtt($airDevice); if (!empty($airMonitor)) { - $datas['ambient_temperature'] = $airMonitor[1][2]; - $datas['ambient_humidity'] = $airMonitor[1][3]; + $datas['ambient_temperature'] = $airMonitor[1][1]; + $datas['ambient_humidity'] = $airMonitor[1][2]; } else { $datas['ambient_temperature'] = 0; $datas['ambient_humidity'] = 0;