From ac0cd5ba1d267e538be2439640494af82447dcb0 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 9 Apr 2025 14:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E4=BC=91=E5=8F=91=E9=80=81=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E7=BB=99=E9=80=9A=E8=AE=AF=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Article.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index bbb95b5..7a5a23a 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -1514,7 +1514,7 @@ class Article extends Base $tt .= 'Sincerely,
Editorial Office
'; } else if ($data['state'] == 4) { //退修 $tt = $article_info['accept_sn'] . "——" . $article_info['title'] . "
"; - $tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',
'; + $tt .= 'Dear Dr.
'; $tt .= "Thank you for submitting the manuscript to " . $journal_info['title'] . ".
"; $tt .= "The reviewers have given professional comments and suggestions on your manuscript which you can find in the Author Center. Please submit your revised manuscript within two weeks in the manuscript central. And please mark all modification in blue and reply the reviewer's comments one by one.

"; $tt .= "If you need more time or you have any other plans for this manuscript, please feel free to e-mail us in time.

"; @@ -1557,6 +1557,13 @@ class Article extends Base $tt .= 'Website: ' . $journal_info['website']; if ($data['state'] == 4) { sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword'], ROOT_PATH . 'public' . DS . 'system' . DS . 'Checklist_new.docx'); + + //给通讯作者也要发送 + $authors = $this->article_author_obj->where("article_id",$article_info['article_id'])->where("state",0)->where("is_report",1)->select(); + foreach ($authors as $vv){ + sendEmail($vv['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword'], ROOT_PATH . 'public' . DS . 'system' . DS . 'Checklist_new.docx'); + } + } else { sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']); }