cfn/app/Services/Tg/Hook/Mod/ToolOld.php
2025-12-19 17:38:00 +08:00

31 lines
663 B
PHP

<?php
namespace App\Services\Tg\Hook\Mod;
//use App\Services\TomTool\Http;
class ToolOld extends Base {
public function List($aParam)
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/tool";
$r = $this->oHttp->send();
return $r;
}
public function Exec($aParam)
{
$sExec = $aParam['aArg'][1];
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/".$sExec;
$r = $this->oHttp->send();
return $r;
}
}