This commit is contained in:
wangjinlei
2024-06-14 14:55:26 +08:00
parent f46ee160c6
commit 8a88ea3b3e
3 changed files with 103 additions and 69 deletions

View File

@@ -1286,6 +1286,12 @@ class Article extends Base
->where('t_article_reviewer.article_id', $article_info['article_id'])
->where('t_article_reviewer.state', 'in', [1, 3])
->select();
$rev_list_t = $this->article_reviewer_obj
->field('t_article_reviewer_question.*')
->join("t_article_reviewer_question", 't_article_reviewer_question.art_rev_id = t_article_reviewer.art_rev_id', 'left')
->where('t_article_reviewer.article_id', $article_info['article_id'])
->where('t_article_reviewer.state', 2)
->select();
foreach ($rev_list as $v) {
$content = $v['qu9_contents'] . " " . $v['qu10_contents'] . " " . $v['qu11_contents'] . " " . $v['qu12_contents'] . " " . $v['qu13_contents'] . " " . $v['qu14_contents'] . " " . $v['qu15_contents'] . " " . $v['comments'];
if (preg_match('/[\x{4e00}-\x{9fa5}]/u', $content) > 0) { //含有中文
@@ -1299,8 +1305,8 @@ class Article extends Base
}
}
}
if ($rev_real_num < 2) {
return json(['code' => 1, 'msg' => "More than two available reviewer-comments are necessary before going next step."]);
if ($rev_real_num < 2&&$rev_real_num>count($rev_list_t)) {
return json(['code' => 1, 'msg' => "Before proceeding to the next step, you need more than two available reviewer comments, and the total number of accept is greater than the total number of rejected."]);
}
}
//接收必须查重小于20%