From e314d905b86e85449a68c8e8b2f8c50af1620b7c Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 24 Sep 2025 16:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E5=AE=A1=E7=9B=B8=E5=85=B3=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/api/controller/Article.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index 80bb990..b7f693d 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -536,6 +536,21 @@ class Article extends Base $article_res['majors'] = $majors; //查询文章作者信息 $author_res = $this->article_author_obj->where('article_id', $data['articleId'])->where('state', 0)->select(); + //查询作者scopus chengxiaoling 20260924 start + if(!empty($author_res)){ + $aEmail = array_unique(array_column($author_res, 'email')); + $aWhere = ['email' => ['in',$aEmail]]; + $aUserData = Db::name('user')->field('user_id,email,scopus_index,scopus_website,google_index,wos_index')->where($aWhere)->select(); + $aUserData = empty($aUserData) ? [] : array_column($aUserData, null,'email'); + foreach ($author_res as $key => $value) { + $aUserInfo = empty($aUserData[$value['email']]) ? [] : $aUserData[$value['email']]; + $author_res[$key]['scopus_index'] = isset($aUserInfo['scopus_index']) ? $aUserInfo['scopus_index'] : ''; + $author_res[$key]['scopus_website'] = empty($aUserInfo['scopus_website']) ? '' : $aUserInfo['scopus_website']; + $author_res[$key]['google_index'] = isset($aUserInfo['google_index']) ? $aUserInfo['google_index'] : ''; + $author_res[$key]['wos_index'] = isset($aUserInfo['wos_index']) ? $aUserInfo['wos_index'] : ''; + } + } + //查询作者scopus chengxiaoling 20260924 end //查询转投信息 $transfer_res = $this->article_transfer_obj->where('article_id', $data['articleId'])->select(); //查询建议转投详情