From 48d523eb8a9829bbcedeb9273ee9da265c9bf634 Mon Sep 17 00:00:00 2001 From: chengxl Date: Fri, 5 Dec 2025 16:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Workbench.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Workbench.php b/application/api/controller/Workbench.php index d3de8e3..ec06353 100644 --- a/application/api/controller/Workbench.php +++ b/application/api/controller/Workbench.php @@ -682,6 +682,12 @@ class Workbench extends Base } $aUser = array_column($aUser, null,'user_id'); + //更新审稿人重新申请状态为 + $aWhere = ['art_rev_id' => $iArtRevId,'state' => 4]; + $result = Db::name('article_reviewer')->where($aWhere)->limit(1)->update(['is_reapply' => 1,'reapply_time' => time(),'reviewer_act' => 1]); + if($result === false){ + return json_encode(array('status' => 11,'msg' => 'Application to reopen link failed' )); + } //处理发邮件 //邮件模版 $aEmailConfig = [ @@ -803,7 +809,7 @@ class Workbench extends Base //更新文章状态为邀请 $aWhere = ['art_rev_id' => $iArtRevId,'state' => 4]; - $result = Db::name('article_reviewer')->where($aWhere)->limit(1)->update(['state' => 5,'ctime' => time(),'editor_act' => 1]); + $result = Db::name('article_reviewer')->where($aWhere)->limit(1)->update(['state' => 5,'ctime' => time(),'editor_act' => 1,'is_reapply' => 2,'update_time' => time(),'reviewer_act' => 0]); if($result === false){ return json_encode(array('status' => 11,'msg' => 'Status update failed' )); } @@ -878,4 +884,4 @@ class Workbench extends Base } return json_encode(['status' => 14,'msg' => 'fail']); } -} \ No newline at end of file +}