no message

This commit is contained in:
hellcat 2025-06-11 16:16:23 +08:00
parent 5343dda5b8
commit c5560f6848
3 changed files with 36 additions and 1 deletions

View File

@ -30,7 +30,17 @@ class CronController
$s = date("s");
//// test
$h = "00";
$k = $_GET["k"];
$v = $_GET["v"];
if ($k == "h") {
$h = $v;
} else if ($k == "i") {
$i = $v;
} else if ($k == "k") {
$s = $v;
}
//// test end
if ($h == "00") {

View File

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

View File

@ -0,0 +1,24 @@
<?php
namespace App\Services\TG\Hook\Mod;
use App\Services\TomTool\Http;
class Cron extends Base {
public function test($aParam)
{
$sType = $aParam["aArg"][1];
$sValue = $aParam["aArg"][2];
$oHttp = new Http();
$oHttp->sMethod = "get";
$oHttp->bIsJson = true;
$oHttp->sToUrl = env("APP_URL")."/cron";
$oHttp->aData = ["k" => $sType, "v" => $sValue];
$r = $oHttp->send();
return $r;
}
}