自动推荐审稿人

This commit is contained in:
chengxl
2025-06-24 11:30:48 +08:00
parent c5d79eb84f
commit 37827f902c

View File

@@ -44,14 +44,14 @@ class Reviewer
Website: {website}'
],
'revision' => [
'email_subject' => 'Termination of Review Assignment for [{accept_sn}]',
'email_subject' => 'Termination of Review Assignment for {journal_title}-[{accept_sn}]',
'email_content' => '
Dear {realname},<br><br>
Dear Dr. {realname},<br><br>
I hope this message finds you well.<br>
We truly appreciate your kind acceptance to review the manuscript titled "{article_title}" ({accept_sn}). <br>
However, due to recent updates in our editorial workflow, we would like to request the termination of this review task. <br>
We sincerely apologize for any inconvenience caused and are grateful for your ongoing support of our journal. We hope to have the opportunity to invite you for future reviews. <br>
Thank you for your understanding. <br>
Thank you for your understanding. <br><br>
Sincerely,<br>
Editorial Office<br>
<a href="https://www.tmrjournals.com/draw_up.html?issn={journal_issn}">Subscribe to this journal</a><br>
@@ -461,8 +461,8 @@ class Reviewer
$sMsg = '';
foreach ($aUser as $key => $value) {
$email = 'tmr@tmrjournals.com';//empty($value['email']) ? '' : $value['email'];
if(empty($value['email']) || empty($aReviewer[$value['user_id']])){
$email = empty($value['email']) ? '' : $value['email'];
if(empty($email) || empty($aReviewer[$value['user_id']])){
continue;
}
@@ -637,7 +637,7 @@ class Reviewer
//发邮件
$oArticle = new \app\api\controller\Article;
$email = 'tmr@tmrjournals.com';//empty($aJournal['email']) ? '' : $aJournal['email'];
$email = empty($aJournal['email']) ? '' : $aJournal['email'];
if(empty($email)){
return json_encode(['status' => 6,'msg' => 'Journal email not set up']);
}
@@ -739,8 +739,8 @@ class Reviewer
//审稿人信息
$art_rev_id = empty($aReviewer[$value['user_id']]) ? 0 : $aReviewer[$value['user_id']];
$email = 'tmr@tmrjournals.com';//empty($value['email']) ? '' : $value['email'];
if(empty($value['email']) || empty($art_rev_id)){
$email = empty($value['email']) ? '' : $value['email'];
if(empty($email) || empty($art_rev_id)){
continue;
}
if(in_array($art_rev_id, $aEmail)){//已发过邮件代表已经扣减分数