作者 lyh

gx脚本统计数据

... ... @@ -207,7 +207,6 @@ class countProject extends Command
->whereNotNull('uptime') // 确保 uptime 字段不为空
->orderByRaw('diff DESC')
->first();
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($max_info, true) . PHP_EOL, FILE_APPEND);
$data['max_project_count'] = $max_info['diff'];
$data['average'] = ceil(($max_info['diff'] + $min_info['diff']) / 2);
return $data;
... ...