This commit is contained in:
wangjinlei
2025-03-05 11:46:20 +08:00
parent f3d3ae04ca
commit 7a0cd98d3b
10 changed files with 1261 additions and 8 deletions

View File

@@ -846,6 +846,7 @@ class Reviewer extends Base
//验证字数
$content = $data['qu9contents']." ".$data['qu10contents']." ".$data['qu11contents']." ".$data['qu12contents']." ".$data['qu13contents']." ".$data['qu14contents']." ".$data['qu15contents']." ".$data['comment'];
$content1 = $data['comment'];
if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $content)>0){//含有中文
return jsonError("Cannot contain Chinese");
@@ -860,12 +861,12 @@ class Reviewer extends Base
// }
}else{//不含中文
if($journal_info['journal_id']==1){
$carray = explode(" ", $content);
$carray = explode(" ", $content1);
if(count($carray)<150){
return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 150 words).");
}
}else{
$carray = explode(" ", $content);
$carray = explode(" ", $content1);
if(count($carray)<100){
return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 70 words).");
}