From 9322ae2e0ddc0cfcd03793ad730e4eadf6d05ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 23 Feb 2022 17:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=B4=9F=E8=BD=BD?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/linedata/get_line_list.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index a15a4bc..e424167 100755 --- a/script/linedata/get_line_list.php +++ b/script/linedata/get_line_list.php @@ -5,7 +5,7 @@ * @Author: kangkang * @Date: 2020-11-03 11:04:15 * @LastEditors: Please set LastEditors - * @LastEditTime: 2021-11-22 17:26:17 + * @LastEditTime: 2022-02-23 17:46:48 */ $is_script = 1; include_once __DIR__ . '/../../index.php'; @@ -511,6 +511,17 @@ function mogu_getList($data, &$file, &$all ) } $key = $city_name[0]; + // 负载状态 + $status = '正常'; + + if ($info['online'] > $info['allline']) { + $status = '超载'; + } else if ($info['online'] == $info['allline']) { + $status = '满载'; + } else { + $status = '正常'; + } + $record['city'] = $city_name[1]; $record['supply'] = $info['yunying']; @@ -519,7 +530,7 @@ function mogu_getList($data, &$file, &$all ) $record['onlineuser'] = ''; $record['maxuser'] = ''; $record['online'] = $info['status']; - $record['status'] = ''; + $record['status'] = $status; $record['nasname'] = $info['address']; $list1[$key][] = $record; }