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
$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("暂停");
}