no message
This commit is contained in:
parent
5343dda5b8
commit
c5560f6848
@ -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") {
|
||||
|
||||
@ -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";
|
||||
|
||||
24
app/Services/TG/Hook/Mod/Cron.php
Normal file
24
app/Services/TG/Hook/Mod/Cron.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user