1
This commit is contained in:
@@ -37,6 +37,8 @@ class Article extends Controller {
|
||||
protected $article_response_to_reviewer_obj = '';
|
||||
protected $user_black_obj = '';
|
||||
protected $user_reviewer_recommend_obj = '';
|
||||
protected $email_log_obj = '';
|
||||
protected $email_template_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -64,6 +66,8 @@ class Article extends Controller {
|
||||
$this->article_response_to_reviewer_obj = Db::name('article_response_to_reviewer');
|
||||
$this->user_black_obj = Db::name('user_black');
|
||||
$this->user_reviewer_recommend_obj = Db::name('user_reviewer_recommend');
|
||||
$this->email_log_obj = Db::name('email_log');
|
||||
$this->email_template_obj = Db::name('email_template');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -211,6 +215,12 @@ class Article extends Controller {
|
||||
$res[$k]['countrys'] = $cache_country;
|
||||
}
|
||||
|
||||
//增加邮件历史记录
|
||||
foreach($res as $k => $v){
|
||||
$cache = $this->email_log_obj->where('article_id',$v['article_id'])->where('is_success',1)->select();
|
||||
$res[$k]['emailh'] = $cache?1:0;
|
||||
}
|
||||
|
||||
$count = $this->article_obj->where($where)->count();
|
||||
|
||||
return json(['total' => $count, 'data' => $res]);
|
||||
@@ -987,6 +997,7 @@ class Article extends Controller {
|
||||
$tt .= 'Please find the new comments in the "<a href="http://submission.tmrjournals.com/submission?journal='.$journal_info['alias'].'">Author Center</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 .= 'Sincerely,<br>Editorial Office<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>";
|
||||
}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'].'.';
|
||||
@@ -1003,7 +1014,12 @@ class Article extends Controller {
|
||||
if($data['state']!=5||$journal_info['journal_id']!=9){
|
||||
$sendUser['content'] = $tt;
|
||||
// Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
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');
|
||||
}else{
|
||||
sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
}
|
||||
|
||||
}
|
||||
if($data['state']==6){//进入终审,通知主编邮件
|
||||
$chiefs = $this->chief_to_journal_obj->join('t_user','t_user.user_id = t_chief_to_journal.user_id','left')->where('t_chief_to_journal.journal_id',$journal_info['journal_id'])->where('t_chief_to_journal.state',0)->select();
|
||||
|
||||
Reference in New Issue
Block a user