no message
This commit is contained in:
parent
30cc6e4aa3
commit
a8da06ae7f
@ -25,7 +25,7 @@ class CronController
|
|||||||
|
|
||||||
private $isTest = 0;
|
private $isTest = 0;
|
||||||
|
|
||||||
private $bSendTg = true;
|
private $sSendTg = "y";
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
@ -56,8 +56,8 @@ class CronController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($aGet["bSendTg"])) {
|
if (isset($aGet["sSendTg"])) {
|
||||||
$this->bSendTg = $aGet["bSendTg"];
|
$this->sSendTg = $aGet["sSendTg"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 暂停
|
// 暂停
|
||||||
@ -180,7 +180,7 @@ class CronController
|
|||||||
file_put_contents($this->sProjectPath."/version.text", time());
|
file_put_contents($this->sProjectPath."/version.text", time());
|
||||||
|
|
||||||
// 提交
|
// 提交
|
||||||
if ($this->bSendTg == true) {
|
if ($this->sSendTg == "n") {
|
||||||
$content = file_get_contents($this->sProjectPath."/README.md");
|
$content = file_get_contents($this->sProjectPath."/README.md");
|
||||||
echo $content;
|
echo $content;
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@ -10,17 +10,17 @@ class Test extends Base {
|
|||||||
$sTimeType = $aParam["aOption"][1];
|
$sTimeType = $aParam["aOption"][1];
|
||||||
$sValue = $aParam["aArg"][1];
|
$sValue = $aParam["aArg"][1];
|
||||||
// $sIsText = $aParam["aOption"][2] ?? "yes";
|
// $sIsText = $aParam["aOption"][2] ?? "yes";
|
||||||
$sSendTg = $aParam["aOption"][2] ?? "no";
|
$sSendTg = $aParam["aOption"][2] ?? "n";
|
||||||
|
|
||||||
if ($sValue == "?") {
|
if ($sValue == "?") {
|
||||||
return "#cron__{type:id,i_in10,rand}__{bSendTg:yes,no-default}";
|
return "#cron__{type:id,i_in10,rand}__{bSendTg:y,n-default}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sSendTg == "yes") {
|
// if ($sSendTg == "yes") {
|
||||||
$bSendTg = true;
|
// $bSendTg = true;
|
||||||
} else if ($sSendTg == "no") {
|
// } else if ($sSendTg == "no") {
|
||||||
$bSendTg = false;
|
// $bSendTg = false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// if ($sIsText == "yes") {
|
// if ($sIsText == "yes") {
|
||||||
// $is_test = true;
|
// $is_test = true;
|
||||||
@ -35,7 +35,7 @@ class Test extends Base {
|
|||||||
"is_test" => true,
|
"is_test" => true,
|
||||||
"time_type" => $sTimeType,
|
"time_type" => $sTimeType,
|
||||||
"v" => $sValue,
|
"v" => $sValue,
|
||||||
"bSendTg" => $bSendTg
|
"bSendTg" => $sSendTg
|
||||||
];
|
];
|
||||||
|
|
||||||
$r = $this->oHttp->send();
|
$r = $this->oHttp->send();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user