This commit is contained in:
wangjinlei
2023-09-12 09:12:34 +08:00
parent b2581b5bbe
commit fc64abb1d6
5 changed files with 215 additions and 7 deletions

View File

@@ -54,6 +54,23 @@ class Web extends Base
return jsonSuccess($re);
}
/**
* @return void
*/
public function getBoardsByIssn(){
$data = $this->request->post();
$rule = new Validate([
"issn"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$journal_info = $this->journal_obj->where('issn',$data['issn'])->find();
$boards = $this->getBoardsForJournal($journal_info['journal_id']);
$re['boards'] = $boards;
return jsonSuccess($re);
}
public function getRefers(){
$data = $this->request->post();
$rule = new Validate([