no message
This commit is contained in:
parent
078151e8ee
commit
8d897d564d
@ -3,6 +3,8 @@
|
||||
namespace App\Services\TG\Hook\Mod;
|
||||
use App\Services\TG\Hook\Dog;
|
||||
use App\Models\Article as ModelArticle;
|
||||
use App\Services\TomTool\Http;
|
||||
use App\Services\TG\Http as TGHttp;
|
||||
|
||||
class Hub extends Base {
|
||||
|
||||
@ -18,6 +20,9 @@ class Hub extends Base {
|
||||
// $this->oDog->_setInFormat(["user_name"]);
|
||||
// $this->oDog->_setOutFormat(["user_name" => "date"]);
|
||||
|
||||
$this->oHttp = new Http();
|
||||
$this->oTGHttp = new TGHttp();
|
||||
|
||||
}
|
||||
|
||||
public function __call($sName, $aArg)
|
||||
@ -38,8 +43,6 @@ class Hub extends Base {
|
||||
|
||||
$oArticle = ModelArticle::find($iId);
|
||||
|
||||
var_dump($oArticle);exit;
|
||||
|
||||
$this->oHttp->sToUrl = "https://api.github.com/repos/".$oArticle->user_name."/".$oArticle->project_name;
|
||||
$this->oHttp->sMetHod = "get";
|
||||
$r = $this->oHttp->send();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user