no message
This commit is contained in:
parent
55fd8be0a9
commit
b0babc9dc7
@ -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("暂停");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user