no message
This commit is contained in:
parent
c5560f6848
commit
f623ffc981
@ -30,8 +30,8 @@ class CronController
|
|||||||
$s = date("s");
|
$s = date("s");
|
||||||
|
|
||||||
//// test
|
//// test
|
||||||
$k = $_GET["k"];
|
$k = $_GET["k"] ?? false;
|
||||||
$v = $_GET["v"];
|
$v = $_GET["v"] ?? false;
|
||||||
|
|
||||||
if ($k == "h") {
|
if ($k == "h") {
|
||||||
$h = $v;
|
$h = $v;
|
||||||
@ -64,7 +64,7 @@ class CronController
|
|||||||
$iDiffDay = -$iDiffDay;
|
$iDiffDay = -$iDiffDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sTgStr = "⚠️⚠️⚠️ {{ ".$oBookRow->rag." }} 还有 {{ ".$iDiffDay." }} 天到期";
|
$sTgStr = "⚠️⚠️⚠️ {{ ".$oBookRow->rag." }} 还有 {{ ".$iDiffDay." }} 天到期 ⚠️⚠️⚠️";
|
||||||
|
|
||||||
$this->oTGHttp->sendToTG($sTgStr);
|
$this->oTGHttp->sendToTG($sTgStr);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -315,7 +315,7 @@ class SakaiController
|
|||||||
$s = "del 1";
|
$s = "del 1";
|
||||||
$s = "tip 7";
|
$s = "tip 7";
|
||||||
$s = "back";
|
$s = "back";
|
||||||
$s = "/cron#test i 00";
|
$s = "/cron#test";
|
||||||
// $s = "war 8";
|
// $s = "war 8";
|
||||||
// $s = "no 9";
|
// $s = "no 9";
|
||||||
// $s = "detail__all 1";
|
// $s = "detail__all 1";
|
||||||
|
|||||||
@ -8,14 +8,18 @@ class Cron extends Base {
|
|||||||
|
|
||||||
public function test($aParam)
|
public function test($aParam)
|
||||||
{
|
{
|
||||||
$sType = $aParam["aArg"][1];
|
$sType = $aParam["aArg"][1] ?? false;
|
||||||
$sValue = $aParam["aArg"][2];
|
$sValue = $aParam["aArg"][2] ?? false;
|
||||||
|
|
||||||
$oHttp = new Http();
|
$oHttp = new Http();
|
||||||
$oHttp->sMethod = "get";
|
$oHttp->sMethod = "get";
|
||||||
$oHttp->bIsJson = true;
|
$oHttp->bIsJson = true;
|
||||||
$oHttp->sToUrl = env("APP_URL")."/cron";
|
$oHttp->sToUrl = env("APP_URL")."/cron";
|
||||||
|
|
||||||
|
if ($sType && $sValue) {
|
||||||
$oHttp->aData = ["k" => $sType, "v" => $sValue];
|
$oHttp->aData = ["k" => $sType, "v" => $sValue];
|
||||||
|
}
|
||||||
|
|
||||||
$r = $oHttp->send();
|
$r = $oHttp->send();
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user