This commit is contained in:
王金磊
2023-03-17 15:06:31 +08:00
parent c5e6781197
commit 34494929a6
6 changed files with 606 additions and 22 deletions

View File

@@ -939,12 +939,12 @@ 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|| $cache_report['google_index'] != 0 || $data['state'] == 3) {
if ($cache_report==null||$article_info['state'] != 0 || $cache_report['google_time'] != 0|| $cache_report['google_index'] != 0 || $data['state'] == 3) {
$h_check = true;
break;
}
}
if ($h_check == false) {
if ($article_info['state'] == 0&&$authors && $h_check == false) {
return jsonError('Please complete the H-index before proceeding');
}
@@ -1737,7 +1737,7 @@ class Article extends Controller
$report_tt .= "and you can access your account by visiting " . $journal_info['website'] . " and logging in.<br/><br/>";
$report_tt .= "If you have any questions or need assistance with accessing your account, please don't hesitate to contact us. We are here to support you throughout the submission and review process.<br/><br/>";
$report_tt .= "Thank you for choosing to submit your work to our journal. We look forward to working with you.<br/><br/>";
$report_tt .= "Best regards,<br>" . $inser_data['realname'] . '<br/>' . $journal_info['title'];
$report_tt .= "Best regards,<br>" . $journal_info['title'];
$maidata['email'] = trim($v['email']);
$maidata['title'] = $journal_info['title'];
$maidata['content'] = $report_tt;
@@ -2203,7 +2203,7 @@ class Article extends Controller
foreach ($reviewers as $v) {
$this->addRecommentReviewer($v, $journal_info['journal_id'], $user_res['user_id'], $data['article_id']);
}
$this->article_obj->where('article_id', $data['article_id'])->update(['state' => 0]);
$this->article_obj->where('article_id', $data['article_id'])->update(['state' => 0,'ctime'=>time()]);
$this->ai_scor($data['article_id']);
return json(['code' => 0]);
}