From 08f6987e60fd75865e37fbbaf24cae81e6150791 Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 10 Sep 2025 15:07:04 +0800 Subject: [PATCH] =?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]); + } }