29 lines
598 B
PHP
29 lines
598 B
PHP
<?php
|
|
|
|
namespace App\Services\TG\Hook\Mod;
|
|
//use App\Services\TomTool\Http;
|
|
|
|
class Test extends Base {
|
|
|
|
public function Cron($aParam)
|
|
{
|
|
$sTimeType = $aParam["aOption"][1];
|
|
$sValue = $aParam["aArg"][1];
|
|
|
|
$this->oHttp->sMethod = "get";
|
|
$this->oHttp->sToUrl = env("APP_URL")."/cron";
|
|
$this->oHttp->bIsJson = true;
|
|
$this->oHttp->aData = [
|
|
"is_test" => true,
|
|
"time_type" => $sTimeType,
|
|
"v" => $sValue
|
|
];
|
|
|
|
$r = $this->oHttp->send();
|
|
|
|
return $r;
|
|
|
|
}
|
|
|
|
}
|