1
This commit is contained in:
@@ -43,6 +43,7 @@ class Article extends Controller
|
||||
protected $email_template_obj = '';
|
||||
protected $production_article_obj = '';
|
||||
protected $company_top_obj = '';
|
||||
protected $user_score_log_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null)
|
||||
{
|
||||
@@ -76,6 +77,7 @@ class Article extends Controller
|
||||
$this->email_template_obj = Db::name('email_template');
|
||||
$this->production_article_obj = Db::name('production_article');
|
||||
$this->company_top_obj = Db::name('company_top');
|
||||
$this->user_score_log_obj = Db::name('user_score_log');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -937,7 +939,7 @@ class Article extends Controller
|
||||
$h_check = false;
|
||||
foreach ($authors as $v) {
|
||||
$cache_report = $this->user_obj->where('email', $v['email'])->find();
|
||||
if ($article_info['state'] != 0 || $cache_report['google_time'] != 0 || $data['state'] == 3) {
|
||||
if ($article_info['state'] != 0 || $cache_report['google_time'] != 0|| $cache_report['google_index'] != 0 || $data['state'] == 3) {
|
||||
$h_check = true;
|
||||
break;
|
||||
}
|
||||
@@ -948,7 +950,7 @@ class Article extends Controller
|
||||
|
||||
//初审分数不够,自动拒稿
|
||||
if ($article_info['state'] == 0 && $article_info['type'] != 'N' && $article_info['type'] != 'T') {
|
||||
if (($journal_info['journal_id'] == 1 && $article_info['scoring'] < 4) || (($journal_info['journal_id'] == 10 || $journal_info['journal_id'] == 23) && $article_info['scoring'] < 3) || ($journal_info['journal_id'] == 21 && $article_info['scoring'] < 1) || ($journal_info['journal_id'] == 16 && $article_info['scoring'] < 2) || ($journal_info['journal_id'] != 1 && $journal_info['journal_id'] != 10 && $journal_info['journal_id'] != 21 && $journal_info['journal_id'] != 23 && $article_info['scoring'] < 1)) {
|
||||
if (($journal_info['journal_id'] == 1 && $article_info['scoring'] < 4) || (($journal_info['journal_id'] == 10 || $journal_info['journal_id'] == 23) && $article_info['scoring'] < 3) || ($journal_info['journal_id'] == 21 && $article_info['scoring'] < 0) || ($journal_info['journal_id'] == 16 && $article_info['scoring'] < 2) || ($journal_info['journal_id'] != 1 && $journal_info['journal_id'] != 10 && $journal_info['journal_id'] != 21 && $journal_info['journal_id'] != 23 && $article_info['scoring'] < 1)) {
|
||||
if (count($transfer_list) > 0) {
|
||||
//查询转投期刊信息
|
||||
$transfer_journal = $this->journal_obj->where('journal_id', $transfer_list[0]['journal_id'])->find();
|
||||
@@ -1120,6 +1122,19 @@ class Article extends Controller
|
||||
return jsonError("Submissions with a repetition rate greater than thirty percent will not be accepted");
|
||||
}
|
||||
|
||||
//接收后为用户增加积分
|
||||
if($data['state']==5){
|
||||
$score = 0;
|
||||
if($journal_info['level']=='A'){
|
||||
$score=1;
|
||||
}elseif($journal_info['level']=='B'){
|
||||
$score=0.5;
|
||||
}else{
|
||||
$score=0.3;
|
||||
}
|
||||
addUserScoreLog($user_info['user_id'],$score,"add score ".$score." for submit article :".$article_info['accept_sn'],time());
|
||||
$this->user_obj->where('user_id',$user_info['user_id'])->setInc('score',$score);
|
||||
}
|
||||
|
||||
|
||||
//添加文章状态信息(如果状态未更新可做通话用,并结束操作)
|
||||
@@ -2140,13 +2155,13 @@ class Article extends Controller
|
||||
//发送邮件给作者,表示感谢
|
||||
$tt_t = 'Dear Dr. ' . ($user_res['realname'] == '' ? $user_res['account'] : $user_res['realname']) . ',<br><br>';
|
||||
$tt1 = 'Thank you for submitting your manuscript entitled "' . $article_info['title'] . '". Your submission has been assigned the following tracking number:' . $article_info['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>';
|
||||
$tt1 .= 'Thank you for choosing to submit your manuscript to Life Research.<br><br><br>';
|
||||
$tt1 .= 'Yours sincerely,<br>Haoran Zhang<br><br>';
|
||||
$tt1 .= 'Manuscript Administration, Life Research<br>https://www.tmrjournals.com/lr/';
|
||||
} else { //其他期刊发送邮件
|
||||
// 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>';
|
||||
// $tt1 .= 'Thank you for choosing to submit your manuscript to Life Research.<br><br><br>';
|
||||
// $tt1 .= 'Yours sincerely,<br>Haoran Zhang<br><br>';
|
||||
// $tt1 .= 'Manuscript Administration, Life Research<br>https://www.tmrjournals.com/lr/';
|
||||
// } else { //其他期刊发送邮件
|
||||
$tt1 .= 'You may check on the status of this manuscript in the Submission System. If you encounter any problems, please contact ' . $journal_info['email'] . '.<br><br>';
|
||||
$tt1 .= 'Thank you for choosing to submit your manuscript to ' . $journal_info['title'] . '.<br><br><br>';
|
||||
$tt1 .= 'Sincerely,<br>Editorial Office<br>';
|
||||
@@ -2156,7 +2171,7 @@ class Article extends Controller
|
||||
$tt1 .= 'Website: ' . $journal_info['website'] . '<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'], $tt_t . $tt1, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user