diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 64959f9..b4854ba 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -44,8 +44,9 @@ class CronController // i_in10规则 $iIin10 = $i[1]; $aArticle = Article::where("i_in10", $iIin10)->where("status", 1)->get()->toArray(); - - $this->run($aArticle); + if (!empty($aArticle)) { + $this->run($aArticle); + } $aConditions = Article::select('cron_condition') diff --git a/app/Services/TG/Hook/Mod/Cmd.php b/app/Services/TG/Hook/Mod/Cmd.php index 94598bc..8dfc673 100644 --- a/app/Services/TG/Hook/Mod/Cmd.php +++ b/app/Services/TG/Hook/Mod/Cmd.php @@ -19,7 +19,8 @@ class Cmd extends Base { '文章set' => 'Article#Set__id__fild set', // '添加github的sshhost' => "System#AddSshHostGithub", '文章clone' => "article#clone id", - '手动pullR' => "article#clone id", + 'git手动重置' => "git#pullR", + '文章find' => "article#find id", ]; $this->oTGHttp->sendToTG(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));