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; }