cfn/app/Services/TG/Hook/Mod/Tool.php
2025-06-17 13:19:33 +08:00

128 lines
3.2 KiB
PHP

<?php
namespace App\Services\TG\Hook\Mod;
use Illuminate\Support\Facades\DB;
class Tool extends Base {
// function __construct()
// {
// $this->oHttp->sMethod = "get";
// $this->oHttp->bIsJson = "true";
// /exec/html/toptags
// /exec/like/auto
// /exec/html/client
// /exec/html/article
// /exec/html/single/{code}
// /exec/data/freenode/all
// /exec/like/init
// /exec/freenode/craw/{day}
// }
public function Article_freenode_up_limit($aParam)
{
$iStart = $aParam["aArg"][1];
$iLimit = $aParam["aArg"][2];
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/freenode/craw/".$iStart."/".$iLimit;
$r = $this->oHttp->send();
return $r;
}
public function Like_init()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/like/init";
$r = $this->oHttp->send();
return $r;
}
public function Article_freenode_data_reset()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/data/freenode/all";
$r = $this->oHttp->send();
return $r;
}
public function Article_single_html($aParam)
{
$sCode = $aParam["aArg"][1];
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/html/single/".$sCode;
$r = $this->oHttp->send();
return $r;
}
public function Article_html()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/html/article";
$r = $this->oHttp->send();
return $r;
}
public function Article_client_html()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/html/client";
$r = $this->oHttp->send();
return $r;
}
public function Like_auto()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/like/auto";
$r = $this->oHttp->send();
return $r;
}
public function Toptag_html()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/html/toptags";
$r = $this->oHttp->send();
return $r;
}
public function Article_freenode_up()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/freenode/up";
$r = $this->oHttp->send();
return $r;
}
public function cron()
{
$this->oHttp->sMethod = "get";
$this->oHttp->bIsJson = "true";
$this->oHttp->sToUrl = env("APP_URL")."/exec/cron";
$r = $this->oHttp->send();
return $r;
}
}