no message

This commit is contained in:
hellcat 2025-07-15 19:20:58 +08:00
parent 6bae861493
commit 94638c8239

View File

@ -25,6 +25,8 @@ class CronController
private $isTest = 0; private $isTest = 0;
private $bSendTg = true;
public function index() public function index()
{ {
try { try {
@ -34,7 +36,7 @@ class CronController
$s = date("s"); $s = date("s");
$iRand = rand(1, 1440); $iRand = rand(1, 1440);
$aUpdate = []; $aUpdate = [];
$bSendTg = true; // $bSendTg = true;
// $isTest = 0; // $isTest = 0;
//test //test
@ -55,7 +57,7 @@ class CronController
} }
if (isset($aGet["bSendTg"])) { 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()); file_put_contents($this->sProjectPath."/version.text", time());
// 提交 // 提交
if ($this->isTest == 1) { if ($this->bSendTg == 1) {
$content = file_get_contents($this->sProjectPath."/README.md"); $content = file_get_contents($this->sProjectPath."/README.md");
echo $content; echo $content;
exit; exit;