From a105327530ebe3546b4dfc823e29956d2a04ab06 Mon Sep 17 00:00:00 2001 From: chengxl Date: Fri, 5 Sep 2025 16:04:38 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=95=B0=E9=87=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index b8d26f7..80bb990 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -1253,8 +1253,8 @@ class Article extends Base } //判断审稿记录是否有拒稿 if(!in_array(2, $aReviewLists)){//拒稿 - if(count($aReviewLists) < 3){ - return jsonError("The number of reviewers is less than 3"); + if(count($aReviewLists) < 2){ + return jsonError("The number of reviewers is less than 2"); } } From 94dd9d3e7cc75832a4a3404f5b930e3cbe9abfd4 Mon Sep 17 00:00:00 2001 From: chengxl Date: Tue, 9 Sep 2025 10:11:50 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Finalreview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/controller/Finalreview.php b/application/api/controller/Finalreview.php index cee6b96..2808ed5 100644 --- a/application/api/controller/Finalreview.php +++ b/application/api/controller/Finalreview.php @@ -379,7 +379,7 @@ class Finalreview extends Base } if($aReviewerFinal['state'] == 0){//同意审稿之后更新状态1接收2拒绝3退修 if(!in_array($iState, [1,2,3])){ - return json_encode(['status' => 6,'msg' => 'Illegal review status']); + return json_encode(['status' => 6,'msg' => 'You have agreed to review, please proceed to the final review list for the review process']); } $suggest_for_editor = empty($aParam['suggest_for_editor']) ? '' : $aParam['suggest_for_editor']; $suggest_for_author = empty($aParam['suggest_for_author']) ? '' : $aParam['suggest_for_author']; From d8c4ec4df62db6817aa5b16cc4006c31d71f658d Mon Sep 17 00:00:00 2001 From: chengxl Date: Tue, 9 Sep 2025 14:25:30 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Finalreview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/controller/Finalreview.php b/application/api/controller/Finalreview.php index 2808ed5..e269fc2 100644 --- a/application/api/controller/Finalreview.php +++ b/application/api/controller/Finalreview.php @@ -379,7 +379,7 @@ class Finalreview extends Base } if($aReviewerFinal['state'] == 0){//同意审稿之后更新状态1接收2拒绝3退修 if(!in_array($iState, [1,2,3])){ - return json_encode(['status' => 6,'msg' => 'You have agreed to review, please proceed to the final review list for the review process']); + return json_encode(['status' => 6,'msg' => 'Please click on "Final Decision" under the "Editorial Board Member" or "Editor-in-Chief" tab in the left sidebar to review the article.']); } $suggest_for_editor = empty($aParam['suggest_for_editor']) ? '' : $aParam['suggest_for_editor']; $suggest_for_author = empty($aParam['suggest_for_author']) ? '' : $aParam['suggest_for_author']; From 08f6987e60fd75865e37fbbaf24cae81e6150791 Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 10 Sep 2025 15:07:04 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Finalreview.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/application/api/controller/Finalreview.php b/application/api/controller/Finalreview.php index e269fc2..3639fb4 100644 --- a/application/api/controller/Finalreview.php +++ b/application/api/controller/Finalreview.php @@ -1026,4 +1026,22 @@ class Finalreview extends Base return trim($this->sTouGaoUrl,'/').'/'.$sJumpUrl.'&r_id=' . $record_id; } + /** + * @title 获取文章的终审意见 + * @param article_id + */ + public function getArticleFinalReview($aParam = []){ + + //获取参数 + $aParam = empty($aParam) ? $this->request->post() : $aParam; + //参数验证-文章ID + $iArticleId = empty($aParam['article_id']) ? 0 : $aParam['article_id']; + if(empty($iArticleId)){ + return json_encode(['status' => 2,'msg' => 'Please select a article']); + } + //查询审稿记录 + $aWhere = ['article_id' => $iArticleId,'state' => ['in',[1,2,3]]]; + $aReviewerFinal = Db::name('article_reviewer_final')->field('id,state,suggest_for_editor,suggest_for_author,update_time,reviewer_id,is_anonymous')->where($aWhere)->select(); + return json_encode(['status' => 1,'msg' => 'success','data' => $aReviewerFinal]); + } } From 0ba0ba63f58806afd67f1485f622954189aaad00 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 11 Sep 2025 16:26:18 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=9C=9F=E5=88=8A=E5=AE=A2=E5=BA=A7?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Special.php | 34 ++++++++++++++++++++------ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/application/api/controller/Special.php b/application/api/controller/Special.php index 3390cae..e80110c 100644 --- a/application/api/controller/Special.php +++ b/application/api/controller/Special.php @@ -574,14 +574,17 @@ class Special extends Controller sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']); //获取客座编辑 - $guests = $this->user_to_special_obj - ->field("t_user.email") - ->join("t_user", 't_user.user_id = t_user_to_special.user_id', 'left') - ->where('t_user_to_special.special_id', $data['special_id']) - ->where('t_user_to_special.uts_state', 0) - ->select(); - foreach($guests as $k => $v){ - sendEmail($v['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']); + $iJournalSpecialId = empty($data['special_id']) ? 0 : $data['special_id']; + $aSpecialEditor = $this->getJournalSpecialEditor(['journal_special_id' => $iJournalSpecialId]); + $aSpecialEditorData = empty($aSpecialEditor['data']) ? [] : $aSpecialEditor['data']; + $aSpecialEditorData = empty($aSpecialEditorData['editors']) ? [] : $aSpecialEditorData['editors']; + if(!empty($aSpecialEditorData)){ + foreach($aSpecialEditorData as $k => $v){ + if(empty($v['email'])){ + continue; + } + sendEmail($v['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']); + } } // $sendEditor = [ // 'title' => $journal_info['title'], // 邮件标题 @@ -991,4 +994,19 @@ class Special extends Controller $insert_data['ctime'] = time(); return $this->article_file_obj->insert($insert_data); } + + /** + * 获取期刊客座编辑 + */ + private function getJournalSpecialEditor($aParam = []){ + + $iJournalSpecialId = empty($aParam['journal_special_id']) ? 0 : $aParam['journal_special_id']; + if(empty($iJournalSpecialId)){ + return ['code' => 2,'msg' => 'journal_special_id is null']; + } + $sJournalUrl = 'http://journalapi.tmrjournals.com/public/index.php/';//'http://zmzm.journal.dev.com/'; + $sUrl = $sJournalUrl."master/Special/getSpecialDetail"; + $aResult = object_to_array(json_decode(myPost1($sUrl,$aParam))); + return $aResult; + } }