1
This commit is contained in:
@@ -457,6 +457,59 @@ class Monitor extends Base
|
||||
return jsonSuccess($res);
|
||||
}
|
||||
|
||||
|
||||
public function getPublicStagesForEditor(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"journal_id"=>"require",
|
||||
"year"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$journal = $this->journal_obj->where("journal_id",$data['journal_id'])->find();
|
||||
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Journal/getArticleCountForSubmission";
|
||||
$program['issn'] = $journal['issn'];
|
||||
$program['year'] = $data['year'];
|
||||
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||
$re['list'] = $res['data']['stages'];
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
public function getArticleCountCiteForEditor(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Journal/getArticleCountCiteForSubmission";
|
||||
$program['article_id'] = $data['article_id'];
|
||||
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||
$re['list'] = isset($res['data']['cites'])?$res['data']['cites']:null;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function getArticleCountRelatedForEditor(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
|
||||
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Journal/getArticleCountRelatedForSubmission";
|
||||
$program['article_id'] = $data['article_id'];
|
||||
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||
$re['list'] = isset($res['data']['list'])?$res['data']['list']:null;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
public function getCiteForChief(){
|
||||
$journal_list = $this->journal_obj
|
||||
->field("t_journal.issn,t_journal.abbr,t_journal.title,t_journal.editor_id,t_user.realname")
|
||||
@@ -471,6 +524,9 @@ class Monitor extends Base
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**获取期刊青年编委
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user