1
This commit is contained in:
@@ -69,6 +69,20 @@ class Journal extends Base {
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
public function editJournalLeftZc(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"journal_id"=>"require",
|
||||
"ethics"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$this->journal_obj->where("journal_id",$data['journal_id'])->update(["ethics"=>$data['ethics']]);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取期刊列表
|
||||
*/
|
||||
|
||||
@@ -121,6 +121,20 @@ class Web extends Base
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
public function getJournalEthics(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"issn"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$info = $this->journal_obj->where("issn",$data['issn'])->find();
|
||||
$re['ethics'] = $info['ethics'];
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
public function getRefers(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
|
||||
Reference in New Issue
Block a user