diff --git a/app/Services/TG/Hook/Mod/Test.php b/app/Services/TG/Hook/Mod/Test.php index 6699352..e5f550e 100644 --- a/app/Services/TG/Hook/Mod/Test.php +++ b/app/Services/TG/Hook/Mod/Test.php @@ -7,15 +7,18 @@ class Test extends Base { public function cron($aParam) { + + if (($aParam["aArg"][1] ?? false) == "?") { + return "#cron__{type:id,i_in10,rand}__{bSendTg:y,n-default}__{bPull:y,n-defulat}"; + } + $sTimeType = $aParam["aOption"][1]; $sValue = $aParam["aArg"][1]; // $sIsText = $aParam["aOption"][2] ?? "yes"; $sSendTg = $aParam["aOption"][2] ?? "n"; $sPull = $aParam["aOption"][3] ?? "n"; - if ($sValue == "?") { - return "#cron__{type:id,i_in10,rand}__{bSendTg:y,n-default}__{bPull:y,n-defulat}"; - } + // if ($sSendTg == "yes") { // $bSendTg = true;