From f582a2b71678ce5a6f940adbeebf923cb49f56fd Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 22 Apr 2025 20:44:10 +0800 Subject: [PATCH] no message --- .gitignore | 1 + app/Http/Controllers/CronController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f21be91..4f2e5e0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ !/github/init.sh !/github/pull.sh !/github/push.sh +README.md \ No newline at end of file diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 332bda6..6840055 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -187,7 +187,7 @@ class CronController $returnVar = 0; exec($command, $output, $returnVar); - if ($returnVar !== 0) { + if ($returnVar !== 0 && $this->aArticle['show_error'] == 1) { $aMsg = [ "命令" => $command,