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');