diff --git a/app/Services/TG/Hook/Cmd.php b/app/Services/TG/Hook/Cmd.php index 23b93fc..d14b397 100644 --- a/app/Services/TG/Hook/Cmd.php +++ b/app/Services/TG/Hook/Cmd.php @@ -17,6 +17,7 @@ class Cmd extends Base { '文章add' => '/Article#Add__name', '文章del' => '/Article#Del__id', '文章set' => '/Article#Set__id__fild set', + '添加github的sshhost' => "System#AddSshHostGithub", ]; $this->oTGHttp->sendToTG(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)); diff --git a/app/Services/TG/Hook/System.php b/app/Services/TG/Hook/System.php new file mode 100644 index 0000000..10ec1be --- /dev/null +++ b/app/Services/TG/Hook/System.php @@ -0,0 +1,39 @@ +oTGHttp->sendToTG($sMsg); + + $this->oHttp::response(200, 'ok'); + + } + +}