no message
This commit is contained in:
parent
6bae861493
commit
94638c8239
@ -25,6 +25,8 @@ class CronController
|
||||
|
||||
private $isTest = 0;
|
||||
|
||||
private $bSendTg = true;
|
||||
|
||||
public function index()
|
||||
{
|
||||
try {
|
||||
@ -34,7 +36,7 @@ class CronController
|
||||
$s = date("s");
|
||||
$iRand = rand(1, 1440);
|
||||
$aUpdate = [];
|
||||
$bSendTg = true;
|
||||
// $bSendTg = true;
|
||||
// $isTest = 0;
|
||||
|
||||
//test
|
||||
@ -55,7 +57,7 @@ class CronController
|
||||
}
|
||||
|
||||
if (isset($aGet["bSendTg"])) {
|
||||
$bSendTg = $aGet["bSendTg"];
|
||||
$this->bSendTg = $aGet["bSendTg"];
|
||||
}
|
||||
|
||||
// 暂停
|
||||
@ -178,7 +180,7 @@ class CronController
|
||||
file_put_contents($this->sProjectPath."/version.text", time());
|
||||
|
||||
// 提交
|
||||
if ($this->isTest == 1) {
|
||||
if ($this->bSendTg == 1) {
|
||||
$content = file_get_contents($this->sProjectPath."/README.md");
|
||||
echo $content;
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user