no message

This commit is contained in:
hellcat 2025-04-18 20:44:48 +08:00
parent 55fd8be0a9
commit b0babc9dc7

View File

@ -36,17 +36,20 @@ class CronController
//test //test
$aGet = $_GET; $aGet = $_GET;
if (isset($aGet['is_test']) && $aGet['is_test'] == 1) { if (isset($aGet['is_test']) && $aGet['is_test'] == 1) {
$isTest = 1;
if ($aGet["time_type"] == 'i') { if ($aGet["time_type"] == 'i') {
$i = (string) $aGet['v']; $i = (string) $aGet['v'];
} else if ($aGet["time_type"] == 'h') { } else if ($aGet["time_type"] == 'h') {
$h = (string) $aGet['v']; $h = (string) $aGet['v'];
} }
} else {
$isTest = 0;
} }
// 暂停 // 暂停
$option = Option::where("type", "pause")->first(); $option = Option::where("type", "pause")->first();
$isPause = $option ? $option->value : null; $isPause = $option ? $option->value : null;
if ($isPause == 1) { if ($isPause == 1 && $isTest !== 1) {
exit("暂停"); exit("暂停");
} }