查询引用文章所有作者调整
This commit is contained in:
@@ -45,14 +45,13 @@ class Cite extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//处理数据-获取通讯作者信息
|
//处理数据-获取通讯作者信息 ,'is_report' => 1
|
||||||
$aArticleId = array_column($aArticleCite, 'article_id');
|
$aArticleId = array_column($aArticleCite, 'article_id');
|
||||||
$aWhere = ['article_id' => ['in',$aArticleId],'is_report' => 1];
|
$aWhere = ['article_id' => ['in',$aArticleId],'state' => 0];
|
||||||
$aArticleAuthor = Db::name('article_author')->field('article_id,author_name,email')->where($aWhere)->select();
|
$aArticleAuthor = Db::name('article_author')->field('article_id,author_name,email')->where($aWhere)->select();
|
||||||
if(empty($aArticleAuthor)){
|
if(empty($aArticleAuthor)){
|
||||||
return json_encode(['status' => 1,'msg' => 'No corresponding author information found for the article','data' => []]);
|
return json_encode(['status' => 1,'msg' => 'No corresponding author information found for the article','data' => []]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//处理数据-获取文章信息
|
//处理数据-获取文章信息
|
||||||
$aArticleId = array_unique(array_column($aArticleCite, 'article_id'));
|
$aArticleId = array_unique(array_column($aArticleCite, 'article_id'));
|
||||||
$aWhere = ['article_id' => ['in',$aArticleId]];
|
$aWhere = ['article_id' => ['in',$aArticleId]];
|
||||||
|
|||||||
Reference in New Issue
Block a user