This commit is contained in:
wangjinlei
2021-02-09 11:29:19 +08:00
parent d12cd7266e
commit 9c68dd26c1
4 changed files with 130 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ class Special extends Controller {
protected $article_to_topic_obj = '';
protected $sys_scient_obj = '';
protected $sys_book_obj = '';
protected $journal_special_alert_obj = '';
public function __construct(\think\Request $request = null) {
parent::__construct($request);
@@ -44,6 +45,7 @@ class Special extends Controller {
$this->article_to_topic_obj = Db::name('article_to_topic');
$this->sys_scient_obj = Db::name('system_scient');
$this->sys_book_obj = Db::name('system_books');
$this->journal_special_alert_obj = Db::name('journal_special_alert');
}
/**
@@ -292,5 +294,25 @@ class Special extends Controller {
}
return $frag;
}
/**
* @title 客座期刊(获取客座期刊文章)
* @description 客座期刊(获取客座期刊文章)
* @author wangjinlei
* @url /api/Special/getSpecialArticles
* @method POST
*
* @param name:journal_id type:int require:1 desc:客座期刊id
*
* @return alertInfo:客座期刊提示语#
*/
public function getSpecialAlert(){
$data = $this->request->post();
$info = $this->journal_special_alert_obj->where('journal_id',$data['journal_id'])->find();
$re['alertInfo'] = $info;
return jsonSuccess($re);
}
}