admin_obj = Db::name('admin'); $this->journal_obj = Db::name('journal'); $this->article_obj = Db::name('article'); $this->article_author_obj = Db::name('article_author'); $this->journal_topic_obj = Db::name('journal_topic'); $this->journal_stage_obj = Db::name('journal_stage'); $this->journal_notices_obj = Db::name('journal_notices'); $this->journal_abs_obj = Db::name('journal_abstracting'); $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'); } /** * @title 获取scients * @description 获取scients * @author wangjinlei * @url /api/Main/getScients * @method POST * * * @return scients:array# * */ public function getScients(){ $list = $this->sys_scient_obj->where('state',0)->select(); $re['scients'] = $list; return jsonSuccess($re); } /** * @title 获取books * @description 获取books * @author wangjinlei * @url /api/Main/getBooks * @method POST * * * @return books:array# * */ public function getBooks(){ $list = $this->sys_book_obj->where('state',0)->select(); $re['books'] = $list; return jsonSuccess($re); } }