This commit is contained in:
wangjinlei
2024-09-24 11:35:05 +08:00
parent ca7b19395b
commit 9df9cf42ef

View File

@@ -839,23 +839,23 @@ class Reviewer extends Base
$content = $data['qu9contents']." ".$data['qu10contents']." ".$data['qu11contents']." ".$data['qu12contents']." ".$data['qu13contents']." ".$data['qu14contents']." ".$data['qu15contents']." ".$data['comment']; $content = $data['qu9contents']." ".$data['qu10contents']." ".$data['qu11contents']." ".$data['qu12contents']." ".$data['qu13contents']." ".$data['qu14contents']." ".$data['qu15contents']." ".$data['comment'];
if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $content)>0){//含有中文 if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $content)>0){//含有中文
if($journal_info['journal_id']==1){ if($journal_info['journal_id']==1){
if(mb_strlen($content, 'UTF8')<100){ if(mb_strlen($content, 'UTF8')<150){
return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 100 words)."); return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 100 words).");
} }
}else{ }else{
if(mb_strlen($content, 'UTF8')<70){ if(mb_strlen($content, 'UTF8')<90){
return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 70 words)."); return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 70 words).");
} }
} }
}else{//不含中文 }else{//不含中文
if($journal_info['journal_id']==1){ if($journal_info['journal_id']==1){
$carray = explode(" ", $content); $carray = explode(" ", $content);
if(count($carray)<100){ if(count($carray)<150){
return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 100 words)."); return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 100 words).");
} }
}else{ }else{
$carray = explode(" ", $content); $carray = explode(" ", $content);
if(count($carray)<70){ if(count($carray)<90){
return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 70 words)."); return jsonError("We encourage you to enrich your comment further to help improve the peer paper (at least 70 words).");
} }
} }