37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Services\TG\Hook\Mod;
|
|
use App\Models\Article as ModelArticle;
|
|
|
|
class Cmd extends Base {
|
|
|
|
public function List()
|
|
{
|
|
|
|
$aCmdList = [
|
|
'优惠码list' => 'SaleCode#List',
|
|
'优惠码find' => 'SaleCode#Find xxhh',
|
|
'优惠码rate' => 'SaleCode#SetRate__xxzz 6.7',
|
|
'文章list' => 'Article#List',
|
|
'文章like' => 'Article#Like__field like',
|
|
'文章add' => 'Article#Add__name',
|
|
'文章del' => 'Article#Del__id',
|
|
'文章set' => 'Article#Set__id__fild set',
|
|
// '添加github的sshhost' => "System#AddSshHostGithub",
|
|
'文章clone' => "article#clone id",
|
|
'git手动重置' => "git#pullR",
|
|
'文章find' => "article#find id",
|
|
'cron暂停' => "option#pause 1",
|
|
'测试cron' => "test#cron_i 01",
|
|
];
|
|
|
|
return $this->toJson($aCmdList);
|
|
|
|
// $this->oTGHttp->sendToTG(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
|
|
|
// $this->oHttp::response(200, 'ok');
|
|
|
|
}
|
|
|
|
}
|