From c49635e8bc317e930a01302a6ed848c07f3b02c0 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 28 Aug 2025 16:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E5=AE=A1=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Reviewer.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/application/api/controller/Reviewer.php b/application/api/controller/Reviewer.php index a18f65c..17e4c15 100644 --- a/application/api/controller/Reviewer.php +++ b/application/api/controller/Reviewer.php @@ -626,6 +626,19 @@ class Reviewer extends Base //文章类型转译 $res['atype'] = translateType($res['atype']); + //查询文章状态是否为终审7 chengxiaoling 20250828 start + $iArticleId = empty($res['article_id']) ? 0 : $res['article_id']; + if(!empty($iArticleId)){ + //查询文章 + $aWhere = ['article_id' => $iArticleId,'state' => 7]; + $aArticle = Db::name('article')->field('article_id,state')->where($aWhere)->find(); + if(!empty($aArticle)){ + $res['can_repeat'] = 0; + return json($res); + } + } + //查询文章状态是否为终审7 chengxiaoling 20250828 end + //复审相关 $repeats = $this->article_reviewer_repeat_obj->where('art_rev_id',$data['revid'])->select(); if($repeats){ @@ -1338,7 +1351,8 @@ class Reviewer extends Base $insert['code'] = $code; $insert['ctime'] = time(); $this->login_auto_obj->insert($insert); - return 'https://submission.tmrjournals.com/per_text?Art_id=' . $article_id . '&act=' . $code; + $url = 'https://submission.tmrjournals.com/per_text?Art_id=' . $article_id . '&act=' . $code; + return $url; } /**