From bc3f2d9a814f6f2c2af6c5f1b2ca6727498384e8 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 15 Apr 2025 21:30:24 +0800 Subject: [PATCH] no message --- app/Http/Controllers/CronController.php | 5 +++-- app/Services/TG/Hook/Mod/Cmd.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) 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));