升级
This commit is contained in:
@@ -126,6 +126,24 @@ class Journal extends Base {
|
||||
return jsonSuccess($program);
|
||||
}
|
||||
|
||||
public function citeMate(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"journal_id"=>"require",
|
||||
"year"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$journal_info = $this->journal_obj->where("journal_id",$data['journal_id'])->find();
|
||||
$url = "http://journalapi.tmrjournals.com/public/index.php/api/Main/citeMate";
|
||||
$program['journal_issn'] = $journal_info['issn'];
|
||||
$program['year'] = $data['year'];
|
||||
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||
|
||||
return json($res);
|
||||
}
|
||||
|
||||
public function delJournalStage(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
|
||||
Reference in New Issue
Block a user