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,