no message
This commit is contained in:
parent
308c5c253f
commit
7932a9a32c
@ -62,7 +62,7 @@ class TestsController
|
|||||||
//test
|
//test
|
||||||
// $s = "\/AticleSet__1115zz__sale_rate 1118.118";
|
// $s = "\/AticleSet__1115zz__sale_rate 1118.118";
|
||||||
// $s = "\/git#LastTime 1";
|
// $s = "\/git#LastTime 1";
|
||||||
$s= "/cron#pause 4";
|
$s= "/option#list";
|
||||||
|
|
||||||
$oHttp = new Http();
|
$oHttp = new Http();
|
||||||
$oHttp->sMethod = "post";
|
$oHttp->sMethod = "post";
|
||||||
|
|||||||
@ -21,7 +21,7 @@ class Cmd extends Base {
|
|||||||
'文章clone' => "article#clone id",
|
'文章clone' => "article#clone id",
|
||||||
'git手动重置' => "git#pullR",
|
'git手动重置' => "git#pullR",
|
||||||
'文章find' => "article#find id",
|
'文章find' => "article#find id",
|
||||||
'cron暂停' => "cron#pause 1",
|
'cron暂停' => "option#pause 1",
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->oTGHttp->sendToTG(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
$this->oTGHttp->sendToTG(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
namespace App\Services\TG\Hook\Mod;
|
namespace App\Services\TG\Hook\Mod;
|
||||||
use App\Models\Option as ModelOption;
|
use App\Models\Option as ModelOption;
|
||||||
|
|
||||||
class Cron extends Base {
|
class Option extends Base {
|
||||||
|
|
||||||
public function Pause($aParam)
|
public function Pause($aParam)
|
||||||
{
|
{
|
||||||
@ -24,4 +24,11 @@ class Cron extends Base {
|
|||||||
return json_encode(['error' => 'Option not found']);
|
return json_encode(['error' => 'Option not found']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function List()
|
||||||
|
{
|
||||||
|
$aOptionList = ModelOption::all()->toArray();
|
||||||
|
|
||||||
|
return json_encode($aOptionList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user