diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 017efe6..09944dc 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -58,7 +58,7 @@ class CronController // inday_count规则 $iRand = rand(1, 1440); // $iRand = 1; - $oIndayArticle = Article::where("inday_count", ">=", $iRand)->where("status", 1)->get(); // inday24 >= rand10 + $oIndayArticle = Article::where("inday_count", ">=", $iRand)->where("status", 1)->get()->toArray(); // inday24 >= rand10 if (!empty($oIndayArticle)) { $this->run($oIndayArticle); }