From 30b358777157b4e1d238f869b62c9b1ba8824bc4 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Tue, 21 Sep 2021 19:11:14 +0900 Subject: [PATCH] update: fix --- app/Http/Controllers/Admin/StatController.php | 2 +- app/Jobs/StatServerJob.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/StatController.php b/app/Http/Controllers/Admin/StatController.php index 777fae28..8e54a8b3 100644 --- a/app/Http/Controllers/Admin/StatController.php +++ b/app/Http/Controllers/Admin/StatController.php @@ -95,7 +95,7 @@ class StatController extends Controller 'trojan' => ServerTrojan::where('parent_id', null)->get()->toArray() ]; $timestamp = strtotime('-1 day', strtotime(date('Y-m-d'))); - $statistics = StatServerV2ray::select([ + $statistics = StatServer::select([ 'server_id', 'server_type', 'u', diff --git a/app/Jobs/StatServerJob.php b/app/Jobs/StatServerJob.php index e784251d..3c0f9551 100644 --- a/app/Jobs/StatServerJob.php +++ b/app/Jobs/StatServerJob.php @@ -36,7 +36,7 @@ class StatServerJob implements ShouldQueue public function handle() { $statistic = $this->statistic; - $data = StatServerV2ray::where('record_at', $statistic['record_at']) + $data = StatServer::where('record_at', $statistic['record_at']) ->where('server_id', $statistic['server_id']) ->first(); if ($data) { @@ -46,7 +46,7 @@ class StatServerJob implements ShouldQueue abort(500, '节点统计数据更新失败'); } } else { - if (!StatServerV2ray::create($statistic)) { + if (!StatServer::create($statistic)) { abort(500, '节点统计数据创建失败'); } }