29 lines
584 B
PHP
29 lines
584 B
PHP
<?php
|
|
|
|
namespace App\Services\TG\Hook\Mod;
|
|
|
|
use App\Services\TomTool\Http;
|
|
|
|
class Cron extends Base {
|
|
|
|
public function test($aParam)
|
|
{
|
|
$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";
|
|
|
|
if ($sType && $sValue) {
|
|
$oHttp->aData = ["k" => $sType, "v" => $sValue];
|
|
}
|
|
|
|
$r = $oHttp->send();
|
|
|
|
return $r;
|
|
}
|
|
|
|
}
|