From bd7dbf818fc41b011cdb5aed93f743f5826629a9 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 5 Jun 2025 17:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E7=94=A8=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/crontab/controller/Cite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/crontab/controller/Cite.php b/application/crontab/controller/Cite.php index bd4f367..4acfa15 100644 --- a/application/crontab/controller/Cite.php +++ b/application/crontab/controller/Cite.php @@ -39,7 +39,7 @@ class Cite extends Controller //获取前一天被引用的文章记录 $aWhere = ['state' => 1,'ctime' => ['between',[$sStartDate,$sEndDate]]]; - $aArticleCite = Db::name('article_cite')->field('article_id,journal_id,journal_name,article_name,factor,date,ctime,state,article_cite_id')->where($aWhere)->select(); + $aArticleCite = Db::name('article_cite')->where($aWhere)->select(); if(empty($aArticleCite)){ return json_encode(['status' => 1,'msg' => 'Article citation record is empty','data' => []]); } @@ -59,7 +59,7 @@ class Cite extends Controller //处理数据-获取期刊信息 $aJournalId = array_unique(array_column($aArticleCite, 'journal_id')); - $aWhere = ['journal_id' => ['in',$aJournalId]]; + $aWhere = ['journal_id' => ['in',$aJournalId],'state' => 0]; $aJournal = Db::name('journal')->where($aWhere)->column('journal_id,title as journal_title,usx,email,sx,editorinchief,email,epassword,issn');