This commit is contained in:
wangjinlei
2023-06-25 16:53:54 +08:00
parent 97855b8a31
commit f3c66fcd41

View File

@@ -145,6 +145,19 @@ class Article extends Base
//接受参数
$data = $this->request->post();
if (isset($data['sn']) && trim($data['sn']) != "") {
$where["t_article.accept_sn"] = trim($data['sn']);
$sn_info = $this->article_obj->where('accept_sn',trim($data['sn']))->find();
if(!$sn_info){
return jsonError("Article not found");
}
$data['journal'] = $sn_info['journal_id'];
$data['state'] = $sn_info['state'];
}
//构造查询条件
if ($data['journal'] == 0) { //全部期刊
$userres = $this->user_obj->where(['account' => $data['username']])->column('user_id');
@@ -164,9 +177,6 @@ class Article extends Base
$where['t_article.state'] = array('in', [3, 5]);
}
}
if (isset($data['sn']) && trim($data['sn']) != "") {
$where["t_article.accept_sn"] = trim($data['sn']);
}
if ($data['name'] != '') {
$where['t_article.title'] = array('like', "%" . $data['name'] . "%");
}
@@ -1159,13 +1169,32 @@ class Article extends Base
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>It is a distinct pleasure to inform you that your manuscript has been accepted for publication in ' . $journal_info['title'] . ' (ISSN ' . $journal_info['issn'] . ').<br> The editor will contact you further by email soon.<br><br><br>';
$tt .= 'Sincerely,<br>Editorial Office<br>';
} else if ($data['state'] == 4) { //退修
$tt = $article_info['accept_sn'] . '<br>';
// $tt = $article_info['accept_sn'] . '<br>';
// $tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>';
// $tt .= 'Thank you for submitting the manuscript to ' . $journal_info['title'] . '. <br>';
// $tt .= 'Please find the new comments in the "<a href="http://submission.tmrjournals.com/submission?journal=' . $journal_info['alias'] . '">AuthorCenter</a>", Please submit your revised manuscript within two weeks.<br><br>';
// $tt .= 'If you need more time to revise, you can send E-mial to tell us.<br>';
// $tt .= "Please also find the Manuscript Check List attached. Check and complete each item one by one. If you could put the completed form on the revised manuscript's last page, it would speed up the processing process of the manuscript. Please note that this is voluntary.<br><br>";
// $tt .= 'Sincerely,<br>Editorial Office<br>';
$tt = $article_info['accept_sn'] ."——".$article_info['title']."<br/>";
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>';
$tt .= 'Thank you for submitting the manuscript to ' . $journal_info['title'] . '. <br>';
$tt .= 'Please find the new comments in the "<a href="http://submission.tmrjournals.com/submission?journal=' . $journal_info['alias'] . '">AuthorCenter</a>", Please submit your revised manuscript within two weeks.<br><br>';
$tt .= 'If you need more time to revise, you can send E-mial to tell us.<br>';
$tt .= "Please also find the Manuscript Check List attached. Check and complete each item one by one. If you could put the completed form on the revised manuscript's last page, it would speed up the processing process of the manuscript. Please note that this is voluntary.<br><br>";
$tt .= 'Sincerely,<br>Editorial Office<br>';
$tt .="Thank you for submitting the manuscript to ".$journal_info['title'].".<br/>";
$tt .= "The reviewers have given professional comments and suggestions on your manuscript which you can find in the <a href='https://submission.tmrjournals.com'>Author Center</a>. 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.<br/><br/>";
$tt .= "If you need more time or you have any other plans for this manuscript, please feel free to e-mail us in time.<br/><br/>";
$tt .= "Before submitting the revised manuscript, please check and complete the following items. If you want see more matters, please find the attached Manuscript Checklist.<br/><br/>";
$tt .= "<strong>1.Author Information: </strong><br/>";
$tt .= "(1)Each address,especially corresponding authors address must be complete and include, at a minimum, the institution name, street number, district, city, postal code, and country. For example, School of Basic Medical Science, Tianjin Medical University, No. 22, Qixiangtai Road, Heping District, Tianjin 301617, China.<br/>";
$tt .= "<strong>2.Article Information</strong><br/>";
$tt .= "(1)“Funding support” has been declared. If there is funding support, please add the fund name and number.<br/>";
$tt .= "(2)“Abbreviations” has been listed in the following format: MD, Mean Difference; SMD, Standardized Mean Difference; …….<br/>";
$tt .= "<strong>3.Table and Figure</strong><br/>";
$tt .= "(1)Table: Using three-line tables with title and headings.<br/>";
$tt .= "(2)Figure: at least 300 dpi in TIFF format.<br/>";
$tt .= "<strong>4.References</strong><br/>";
$tt .= "(1)The order of numbering is consecutive and will be contingent on the order in which you use that reference within your paper.<br/>";
$tt .= "(2)All information of references are available, such as year, volume, page and URL.<br/>";
$tt .= "(3)All reference has written in the standard format, for example, <br/>";
$tt .= "1.Beurel E, Toups M, Nemeroff CB. The Bidirectional Relationship of Depression and Inflammation: Double Trouble. Neuron 2020;107(2):234256. Available at:<br/>http://doi.org/10.1016/j.neuron.2020.06.002<br/>";
} else if ($data['state'] == 6) { //终审
$tt = 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>';
$tt .= 'Manuscript status: Your manuscript "' . $article_info['title'] . '" is under reviewing by editorial member team of ' . $journal_info['title'] . '.';
@@ -1183,7 +1212,7 @@ class Article extends Base
$sendUser['content'] = $tt;
// Queue::push('app\api\job\domail@fire',$sendUser,'domail');
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.docx');
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');
} else {
sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
}