From 9d125527cbe33859f9bf8d5d34013b03ad0c2ae0 Mon Sep 17 00:00:00 2001 From: asukassa <117507979+asukassa@users.noreply.github.com> Date: Sun, 30 Aug 2026 01:07:37 +0800 Subject: [PATCH] fix: reindex device IP array before JSON encoding (#1045) --- app/Services/DeviceStateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/DeviceStateService.php b/app/Services/DeviceStateService.php index 8247197..a5d7366 100644 --- a/app/Services/DeviceStateService.php +++ b/app/Services/DeviceStateService.php @@ -162,7 +162,7 @@ class DeviceStateService } } if (!empty($ips)) { - $result[$userId] = array_unique($ips); + $result[$userId] = array_values(array_unique($ips)); } } }