1
This commit is contained in:
@@ -1832,6 +1832,12 @@ class Article extends Base
|
|||||||
$editor_info = $this->user_obj->where('user_id', $journal_info['editor_id'])->find();
|
$editor_info = $this->user_obj->where('user_id', $journal_info['editor_id'])->find();
|
||||||
$reviewer_info = $this->user_obj->where('user_id', $data['uid'])->find();
|
$reviewer_info = $this->user_obj->where('user_id', $data['uid'])->find();
|
||||||
$reviewer_move = $this->user_reviewer_info_obj->where("reviewer_info_id", $reviewer_info['user_id'])->find();
|
$reviewer_move = $this->user_reviewer_info_obj->where("reviewer_info_id", $reviewer_info['user_id'])->find();
|
||||||
|
//排除自己审自己
|
||||||
|
$check_self = $this->article_author_obj->where("email",$reviewer_info['email'])->where("article_id",$article_info['article_id'])->where("state",0)->find();
|
||||||
|
if($check_self){
|
||||||
|
return jsonError("Notice:Selected reviewers may be the authors for this paper!");
|
||||||
|
}
|
||||||
|
|
||||||
// $journal_info = $this->journal_obj->where('journal_id',$article_info['journal_id'])->find();
|
// $journal_info = $this->journal_obj->where('journal_id',$article_info['journal_id'])->find();
|
||||||
|
|
||||||
$check = $this->article_reviewer_obj->where('reviewer_id', $data['uid'])->where('article_id', $data['articleId'])->find();
|
$check = $this->article_reviewer_obj->where('reviewer_id', $data['uid'])->where('article_id', $data['articleId'])->find();
|
||||||
|
|||||||
@@ -473,6 +473,21 @@ class Monitor extends Base
|
|||||||
return jsonSuccess($res['data']);
|
return jsonSuccess($res['data']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCiteListForEditorPMonth(){
|
||||||
|
$data = $this->request->post();
|
||||||
|
$rule = new Validate([
|
||||||
|
"issn"=>"require"
|
||||||
|
]);
|
||||||
|
if(!$rule->check($data)){
|
||||||
|
return jsonError($rule->getError());
|
||||||
|
}
|
||||||
|
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Journal/getCiteListPForSubmission";
|
||||||
|
$program = [];
|
||||||
|
$program['issn'] = $data['issn'];
|
||||||
|
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||||
|
return jsonSuccess($res['data']);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getPublicStagesForEditor(){
|
public function getPublicStagesForEditor(){
|
||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
|
|||||||
@@ -586,7 +586,23 @@ class Production extends Base
|
|||||||
return jsonError($rule->getError());
|
return jsonError($rule->getError());
|
||||||
}
|
}
|
||||||
$this->refuseReferIndex($data['p_article_id']);
|
$this->refuseReferIndex($data['p_article_id']);
|
||||||
$list = $this->production_article_refer_obj->where('p_article_id', $data['p_article_id'])->where('state', 0)->order("index")->select();
|
$list = $this->production_article_refer_obj
|
||||||
|
->field("*,
|
||||||
|
CASE
|
||||||
|
WHEN refer_doi != ''
|
||||||
|
AND refer_doi IS NOT NULL
|
||||||
|
AND refer_doi IN (
|
||||||
|
SELECT refer_doi
|
||||||
|
FROM t_production_article_refer
|
||||||
|
WHERE p_article_id = ".$data['p_article_id']."
|
||||||
|
AND state = 0
|
||||||
|
GROUP BY refer_doi
|
||||||
|
HAVING COUNT(*) > 1
|
||||||
|
) THEN 1
|
||||||
|
ELSE 0
|
||||||
|
END AS repeat
|
||||||
|
")
|
||||||
|
->where('p_article_id', $data['p_article_id'])->where('state', 0)->order("index")->select();
|
||||||
$re['refers'] = $list;
|
$re['refers'] = $list;
|
||||||
return jsonSuccess($re);
|
return jsonSuccess($re);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -843,7 +843,7 @@ class Reviewer extends Base
|
|||||||
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')<90){
|
if(mb_strlen($content, 'UTF8')<100){
|
||||||
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).");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -855,7 +855,7 @@ class Reviewer extends Base
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$carray = explode(" ", $content);
|
$carray = explode(" ", $content);
|
||||||
if(count($carray)<90){
|
if(count($carray)<100){
|
||||||
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).");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -901,7 +901,7 @@ class User extends Base
|
|||||||
$where['state'] = 0;
|
$where['state'] = 0;
|
||||||
// $where['user_id'] = ['not in',$black_list];
|
// $where['user_id'] = ['not in',$black_list];
|
||||||
if ($data['username'] != "") {
|
if ($data['username'] != "") {
|
||||||
$where["account|email"] = ['like','%' . trim($data['username'] . '%')];
|
$where["account|email|realname"] = ['like','%' . trim($data['username'] . '%')];
|
||||||
}
|
}
|
||||||
if($data['role']==1){
|
if($data['role']==1){
|
||||||
$where['type'] = 2;
|
$where['type'] = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user