From b0babc9dc7b5525bc270668b71fd9bfcc08e0f19 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Fri, 18 Apr 2025 20:44:48 +0800 Subject: [PATCH] no message --- app/Http/Controllers/CronController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index ef8466a..5d8552e 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -36,17 +36,20 @@ class CronController //test $aGet = $_GET; if (isset($aGet['is_test']) && $aGet['is_test'] == 1) { + $isTest = 1; if ($aGet["time_type"] == 'i') { $i = (string) $aGet['v']; } else if ($aGet["time_type"] == 'h') { $h = (string) $aGet['v']; } + } else { + $isTest = 0; } // 暂停 $option = Option::where("type", "pause")->first(); $isPause = $option ? $option->value : null; - if ($isPause == 1) { + if ($isPause == 1 && $isTest !== 1) { exit("暂停"); }