no message
This commit is contained in:
parent
6bae861493
commit
94638c8239
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user