diff --git a/app/Services/Article/CacheTg.php b/app/Services/Article/CacheTg.php index 34150180..11c2a1d5 100755 --- a/app/Services/Article/CacheTg.php +++ b/app/Services/Article/CacheTg.php @@ -49,6 +49,10 @@ final class CacheTg $oArticleCache = ModelArticleCache::where("status", 1)->get(); + if ($oArticleCache->isEmpty()) { + return $oFlow->done("没有要处理的数据"); + } + // 第一步,格式化通用tgSchema $aDataMix["data"] = []; foreach ($oArticleCache as $oArticleCacheRow) {