From ec5cd492eb8c4e0fdc8be530e7ff1aac8859a8bf Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Wed, 25 Jun 2025 18:57:05 +0800 Subject: [PATCH] no message --- app/Http/Controllers/CronController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 63610f0..017efe6 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -55,7 +55,15 @@ class CronController $this->run($aArticle); } + // inday_count规则 + $iRand = rand(1, 1440); +// $iRand = 1; + $oIndayArticle = Article::where("inday_count", ">=", $iRand)->where("status", 1)->get(); // inday24 >= rand10 + if (!empty($oIndayArticle)) { + $this->run($oIndayArticle); + } + // i%7==0 $aConditions = Article::select('cron_condition') ->where('status', 1) ->distinct()