From d28f12e0cfeb859be28c5397b052af0f97bccb8a Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Thu, 14 Dec 2023 11:50:43 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=87=87=E9=9B=86=E6=98=AF=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=AE=BE=E5=A4=87=E9=87=8D=E8=BF=9E=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E8=AE=BE=E5=A4=87=E6=96=AD=E5=BC=80=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/DataCollectController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/controller/DataCollectController.php b/app/api/controller/DataCollectController.php index 5fcc3d27..41262335 100644 --- a/app/api/controller/DataCollectController.php +++ b/app/api/controller/DataCollectController.php @@ -30,6 +30,7 @@ class DataCollectController extends BaseApiController $payload= json_decode($parmas['payload'], true); // 如果该设备之前离线,现在重新上线则删除之前的设备离线记录 + DeviceOffline::where('land_id', $land[3])->delete(); $device = explode('_', $parmas['topic']); // 命名规则:topic_deviceid deviceid为设备主键id $data = [ 'land_id' => $land[3],