From b1a32429ba22605cb185a653d15f2dc3561e8b0c Mon Sep 17 00:00:00 2001 From: mzl Date: Tue, 30 Sep 2025 09:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/process/CheckWeb.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/process/CheckWeb.php b/app/process/CheckWeb.php index a7749fe..8baf5b8 100644 --- a/app/process/CheckWeb.php +++ b/app/process/CheckWeb.php @@ -11,7 +11,11 @@ class CheckWeb { if (getenv('ENVIRONMENT') === 'master') { new Crontab('0 */10 * * * *', function(){ - $this->check(); + $result = $this->tocurl('https://magicbridgeauto.com'); + if (!preg_match('/magicbridgeauto/', $result['body'])) { + flg("【magicbridgeauto】疑似被篡改"); + } + return true; }); } } @@ -25,6 +29,7 @@ class CheckWeb // } else { flg("【magicbridgeauto】疑似被篡改"); } + return true; }