no message
This commit is contained in:
parent
c5560f6848
commit
f623ffc981
@ -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);
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user