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