From 2e5c0bb22301d7308d15fd4c7c0bcf72fd282652 Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 14 Jan 2026 09:58:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=9C=9F=E7=94=B3=E8=AF=B7=E6=9C=89?= =?UTF-8?q?=E9=99=90=E5=8F=91=E9=80=81=E5=88=B0=E6=9C=9F=E5=88=8A=E9=82=AE?= =?UTF-8?q?=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Workbench.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/application/api/controller/Workbench.php b/application/api/controller/Workbench.php index 0d8bf45..5ccd66c 100644 --- a/application/api/controller/Workbench.php +++ b/application/api/controller/Workbench.php @@ -659,9 +659,6 @@ class Workbench extends Base return json_encode(['status' => 7,'msg' => 'The article is not in the review status']); } - //查询期刊信息 - $aWhere = ['journal_id' => $aArticle['article_id'],'state' => 0]; - $aJournal = Db::name('journal')->field('title as journal_name,website')->find(); //查询期刊信息 if(empty($aArticle['journal_id'])){ return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' )); @@ -721,7 +718,8 @@ class Workbench extends Base //发邮件 //邮箱 - $email = empty($aUser[$iUserId]['email']) ? '' : $aUser[$iUserId]['email']; + // $email = empty($aUser[$iUserId]['email']) ? '' : $aUser[$iUserId]['email']; + $email = empty($aJournal['email']) ? '' : $aJournal['email']; if(empty($email)){ return json_encode(['status' => 8,'msg' => 'Edit email as empty']); } @@ -793,9 +791,6 @@ class Workbench extends Base return json_encode(['status' => 7,'msg' => 'The article is not in the review status']); } - //查询期刊信息 - $aWhere = ['journal_id' => $aArticle['article_id'],'state' => 0]; - $aJournal = Db::name('journal')->field('title as journal_name,website')->find(); //查询期刊信息 if(empty($aArticle['journal_id'])){ return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' )); @@ -807,10 +802,10 @@ class Workbench extends Base } //判断编辑的操作权限 - $iEditorId = empty($aJournal['editor_id']) ? 0 : $aJournal['editor_id']; - if($iEditorId != $iUserId){ - return json_encode(array('status' => 10,'msg' => 'This article is not authorized for operation under the journal you are responsible for' )); - } + // $iEditorId = empty($aJournal['editor_id']) ? 0 : $aJournal['editor_id']; + // if($iEditorId != $iUserId){ + // return json_encode(array('status' => 10,'msg' => 'This article is not authorized for operation under the journal you are responsible for' )); + // } //更新文章状态为邀请 $aWhere = ['art_rev_id' => $iArtRevId,'state' => 4];