过期申请有限发送到期刊邮箱

This commit is contained in:
chengxl
2026-01-14 09:58:10 +08:00
parent c180ea5b0e
commit 2e5c0bb223

View File

@@ -659,9 +659,6 @@ class Workbench extends Base
return json_encode(['status' => 7,'msg' => 'The article is not in the review status']); 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'])){ if(empty($aArticle['journal_id'])){
return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' )); 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)){ if(empty($email)){
return json_encode(['status' => 8,'msg' => 'Edit email as empty']); 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']); 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'])){ if(empty($aArticle['journal_id'])){
return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' )); 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']; // $iEditorId = empty($aJournal['editor_id']) ? 0 : $aJournal['editor_id'];
if($iEditorId != $iUserId){ // if($iEditorId != $iUserId){
return json_encode(array('status' => 10,'msg' => 'This article is not authorized for operation under the journal you are responsible for' )); // 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]; $aWhere = ['art_rev_id' => $iArtRevId,'state' => 4];