no message

This commit is contained in:
hellcat 2025-06-11 16:19:55 +08:00
parent c5560f6848
commit f623ffc981
3 changed files with 11 additions and 7 deletions

View File

@ -30,8 +30,8 @@ class CronController
$s = date("s");
//// test
$k = $_GET["k"];
$v = $_GET["v"];
$k = $_GET["k"] ?? false;
$v = $_GET["v"] ?? false;
if ($k == "h") {
$h = $v;
@ -64,7 +64,7 @@ class CronController
$iDiffDay = -$iDiffDay;
}
$sTgStr = "⚠️⚠️⚠️ {{ ".$oBookRow->rag." }} 还有 {{ ".$iDiffDay." }} 天到期";
$sTgStr = "⚠️⚠️⚠️ {{ ".$oBookRow->rag." }} 还有 {{ ".$iDiffDay." }} 天到期 ⚠️⚠️⚠️";
$this->oTGHttp->sendToTG($sTgStr);
}

View File

@ -315,7 +315,7 @@ class SakaiController
$s = "del 1";
$s = "tip 7";
$s = "back";
$s = "/cron#test i 00";
$s = "/cron#test";
// $s = "war 8";
// $s = "no 9";
// $s = "detail__all 1";

View File

@ -8,14 +8,18 @@ class Cron extends Base {
public function test($aParam)
{
$sType = $aParam["aArg"][1];
$sValue = $aParam["aArg"][2];
$sType = $aParam["aArg"][1] ?? false;
$sValue = $aParam["aArg"][2] ?? false;
$oHttp = new Http();
$oHttp->sMethod = "get";
$oHttp->bIsJson = true;
$oHttp->sToUrl = env("APP_URL")."/cron";
$oHttp->aData = ["k" => $sType, "v" => $sValue];
if ($sType && $sValue) {
$oHttp->aData = ["k" => $sType, "v" => $sValue];
}
$r = $oHttp->send();
return $r;