31 lines
663 B
PHP
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;
|
|
}
|
|
|
|
}
|