引用接口调整
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user