diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index c1757b2..9870665 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -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; diff --git a/app/Services/TG/Hook/Mod/Test.php b/app/Services/TG/Hook/Mod/Test.php index e1b51a2..c199f0e 100644 --- a/app/Services/TG/Hook/Mod/Test.php +++ b/app/Services/TG/Hook/Mod/Test.php @@ -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();