From e8e8b971959d2a8409a13c39a4e2e4363df67872 Mon Sep 17 00:00:00 2001 From: kf_wuhao <15392746632@qq.com> Date: Thu, 31 Dec 2020 19:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pmcalendar.php b/pmcalendar.php index 8b9ee9c..656af1b 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -164,6 +164,7 @@ if ($act == 'newevent') { $eventCount['总更新&总修复']['purpleCount'] += 1; } + $gameName = $rs['game']; $row = array( 'id' => $rs['id'], @@ -175,6 +176,11 @@ if ($act == 'newevent') { $row['allDay'] = true; $res[] = $row; } + + uasort($eventCount,function ($x,$y){ + return $x['dangerCount']<$y['dangerCount']; + }); + $eventCharts = array(array('product', '更新次数', '修复次数')); $eventTable = array([], []); foreach ($eventCount as $key => $value) {