1
This commit is contained in:
@@ -1484,6 +1484,7 @@ class Article extends Controller {
|
||||
$res = $this->article_obj->insertGetId($inset_data);
|
||||
|
||||
//上传文章作者信息
|
||||
$author_email = [];
|
||||
$authors = [];
|
||||
foreach ($data['authorList'] as $v) {
|
||||
if ($v['firstname'] == '') {
|
||||
@@ -1502,6 +1503,9 @@ class Article extends Controller {
|
||||
$i['is_super'] = $v['isSuper'] == 'true' ? 1 : 0;
|
||||
$i['is_report'] = $v['isReport'] == 'true'?1:0;
|
||||
$authors[] = $i;
|
||||
$cache['email'] = trim($v['email']);
|
||||
$cache['name'] = trim($v['firstname']).' '.trim($v['lastname']);
|
||||
$author_email[] = $cache;
|
||||
}
|
||||
$res_author = $this->article_author_obj->insertAll($authors);
|
||||
|
||||
@@ -1535,8 +1539,8 @@ class Article extends Controller {
|
||||
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt,$journal_info['email'],$journal_info['epassword']);
|
||||
$user_rev_info = $this->user_reviewer_info_obj->where("reviewer_id",$user_res['user_id'])->find();
|
||||
//发送邮件给作者,表示感谢
|
||||
$tt1 = 'Dear Dr. '.($user_res['realname']==''?$user_res['account']:$user_res['realname']).',<br><br>';
|
||||
$tt1 .= 'Thank you for submitting your manuscript entitled "'.$data['title'].'". Your submission has been assigned the following tracking number:'.$inset_data['accept_sn'].'. We will be in touch again as soon as we have reached a decision. Please quote the tracking number in any communication. This e-mail simply acknowledges receipt of your submission. If the editors decide for editorial reasons that the paper is unsuitable for publication in '.$journal_info['title'].', you will be informed as soon as possible.<br><br><br>';
|
||||
$tt_t = 'Dear Dr. '.($user_res['realname']==''?$user_res['account']:$user_res['realname']).',<br><br>';
|
||||
$tt1 = 'Thank you for submitting your manuscript entitled "'.$data['title'].'". Your submission has been assigned the following tracking number:'.$inset_data['accept_sn'].'. We will be in touch again as soon as we have reached a decision. Please quote the tracking number in any communication. This e-mail simply acknowledges receipt of your submission. If the editors decide for editorial reasons that the paper is unsuitable for publication in '.$journal_info['title'].', you will be informed as soon as possible.<br><br><br>';
|
||||
if($journal_info['journal_id']==9){//life research 期刊发送收到文章邮件
|
||||
$tt1 .= 'Life Research applies the CC BY-NC 4.0 license. Full details of the policy can be found at https://www.tmrjournals.com/notice.html?J_num=14&footer_id=123. Authors should read Guide to Authors carefully before submitting.<br><br>';
|
||||
$tt1 .= 'You may check on the status of this manuscript in the Submission System. If you encounter any problems, please contact liferes@tmrjournals.com.<br><br>';
|
||||
@@ -1551,11 +1555,22 @@ class Article extends Controller {
|
||||
$tt1 .= $journal_info['title'].'<br>';
|
||||
$tt1 .= 'Email: '.$journal_info['email'].'<br>';
|
||||
$tt1 .= 'Website: '.$journal_info['website'].'<br>';
|
||||
$tt1 .= 'If you have any questions, please contact us: <br>';
|
||||
$tt1 .= '<hr/>If you have any questions, please contact us: <br>';
|
||||
$tt1 .= 'Head of publication ethics<br>Dr. Dan Chen<br>TMR Publishing Group Limited Company, Auckland, New Zealand<br>Email: publication.ethics@tmrjournals.com';
|
||||
}
|
||||
|
||||
sendEmail($user_res['email'],$journal_info['title'], $journal_info['title'], $tt1,$journal_info['email'],$journal_info['epassword']);
|
||||
sendEmail($user_res['email'],$journal_info['title'], $journal_info['title'], $tt_t.$tt1,$journal_info['email'],$journal_info['epassword']);
|
||||
|
||||
foreach($author_email as $v){
|
||||
$cache_str = 'Dear Dr. '.$v['name'].',<br><br>';
|
||||
$maidata['email'] = $v['email'];
|
||||
$maidata['title'] = $journal_info['title'];
|
||||
$maidata['content'] = $cache_str.$tt1;
|
||||
$maidata['tmail'] = $journal_info['email'];
|
||||
$maidata['tpassword'] = $journal_info['epassword'];
|
||||
Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
}
|
||||
|
||||
//增加用户操作log
|
||||
$log_data['user_id'] = $user_res['user_id'];
|
||||
$log_data['type'] = 0;
|
||||
@@ -2073,7 +2088,7 @@ class Article extends Controller {
|
||||
$pushData['content'] = $all;
|
||||
$pushData['user_id'] = $value['reviewer_id'];
|
||||
$pushData['email'] =$value['email'];
|
||||
Queue::push('app\api\job\domail@fire',$pushData,'domail');
|
||||
// Queue::push('app\api\job\domail@fire',$pushData,'domail');
|
||||
$num = $value['recommend'];
|
||||
if($value['comments']!=''){
|
||||
$difference.= "<br>Reviewer ". ($k+1).' : '.$recommend[$num] ." ( ".preg_replace("/\t/","",$value['comments'])." )<br>";
|
||||
@@ -2088,10 +2103,10 @@ class Article extends Controller {
|
||||
$pushData['user_id'] = $value['reviewer_id'];
|
||||
$pushData['email'] =$value['email'];
|
||||
if($state == 3 && ($value['recommend'] == 1 || $value['recommend'] == 2)){
|
||||
Queue::push('app\api\job\domail@fire',$pushData,'domail');
|
||||
// Queue::push('app\api\job\domail@fire',$pushData,'domail');
|
||||
}
|
||||
if($state == 5 && ($value['recommend'] == 3 || $value['recommend'] == 4)){
|
||||
Queue::push('app\api\job\domail@fire',$pushData,'domail');
|
||||
// Queue::push('app\api\job\domail@fire',$pushData,'domail');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user