From 3241ce618bfa554d9b3e062957bf4d8c02e71ce0 Mon Sep 17 00:00:00 2001 From: xboard Date: Tue, 20 Feb 2024 23:39:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E6=B5=81=E9=87=8F=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98=E4=BB=8A=E6=97=A5=E5=AE=9E=E6=97=B6=E6=B5=81=E9=87=8F?= =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=8A=B1=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/StatisticalService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/StatisticalService.php b/app/Services/StatisticalService.php index d403912f5..4c2752093 100644 --- a/app/Services/StatisticalService.php +++ b/app/Services/StatisticalService.php @@ -154,8 +154,8 @@ public function getStatServer() $stats[] = [ 'server_id' => $serverId, 'server_type' => $serverType, - 'u' => $v[$serverId][0], - 'd' => $v[$serverId][1], + 'u' => $v[$serverId][0] ?: 0, + 'd' => $v[$serverId][1] ?: 0, ]; } }