This commit is contained in:
wangjinlei
2023-06-09 08:59:33 +08:00
parent 12025a6dbc
commit 65cda71dc8
3 changed files with 88 additions and 4 deletions

View File

@@ -859,6 +859,10 @@ class Article extends Base
$user_info = $this->user_obj->where(['user_id' => $article_info['user_id']])->find();
$user_rev_info = $this->user_reviewer_info_obj->where("reviewer_id", $user_info['user_id'])->find();
if($editor_info['user_id'] != $journal_info['editor_id']){
return jsonError("insufficient privilege ");
}
if ($article_info['state'] == 5 || $article_info['state'] == 3) {
return jsonError("Status cannot be changed");
}
@@ -1048,7 +1052,7 @@ class Article extends Base
}
}
//接收必须查重小于20%
if ($data['state'] == 5 && $article_info['repetition'] > 20) {
if ($data['state'] == 5 && $article_info['repetition'] > 25) {
return jsonError("Submissions with a repetition rate greater than thirty percent will not be accepted");
}
@@ -1211,6 +1215,28 @@ class Article extends Base
return json(['code' => 0]);
}
/**获取拒绝文章列表
* @return void
*/
public function getRejectArticles(){
$data = $this->request->post();
$rule = new Validate([
"pageIndex"=>"require",
"pageSize"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$list = $this->article_obj->where('state',3)->page($data['pageIndex'],$data['pageSize'])->order('article_id desc')->select();
foreach ($list as $key => $val){
$list[$key]['author'] = $this->article_author_obj->where('article_id', $val['article_id'])->where('state', 0)->select();
}
$count = $this->article_obj->where('state',3)->count();
$re['articles'] = $list;
$re['count'] = $count;
return jsonSuccess($re);
}
public function authorClear()
{
$author = "Ying Chen1 *,Shi-yi Tao2,Lu Zhou2,De-shuang Yang2,Chong-xiang Xue1 #,Li Huang3 #";