From 8d850de27295e0fe9c7c2232d5a0ed93eaffcb2e Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 16 Oct 2025 09:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=BD=91=E7=AB=99=E7=AF=A1?= =?UTF-8?q?=E6=94=B9=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/process/CheckWeb.php | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/app/process/CheckWeb.php b/app/process/CheckWeb.php index a0d5bbf..8b99d61 100644 --- a/app/process/CheckWeb.php +++ b/app/process/CheckWeb.php @@ -12,15 +12,15 @@ class CheckWeb public function onWorkerStart() { - if (getenv('ENVIRONMENT') === 'master') { - new Crontab('0 */10 * * * *', function(){ - $result = $this->tocurl('https://magicbridgeauto.com'); - if (!preg_match('/magicbridgeauto/', $result['body'])) { - flg("【magicbridgeauto】疑似被篡改"); - } - return true; - }); - } + // if (getenv('ENVIRONMENT') === 'master') { + // new Crontab('0 */10 * * * *', function(){ + // $result = $this->tocurl('https://magicbridgeauto.com'); + // if (!preg_match('/magicbridgeauto/', $result['body'])) { + // flg("【magicbridgeauto】疑似被篡改"); + // } + // return true; + // }); + // } new Crontab('*/50 * * * * *', function(){ $userIds = User::where('status', 1)->pluck('id')->toArray(); @@ -36,18 +36,6 @@ class CheckWeb } - public function check() - { - $result = $this->tocurl('https://magicbridgeauto.com'); - if (!preg_match('/magicbridgeauto/', $result['body'])) { - // flg("【magicbridgeauto】未检查到异常"); - // } else { - flg("【magicbridgeauto】疑似被篡改"); - } - return true; - } - - public function tocurl($url, $header = null, $content = null) { $ch = curl_init();