20201112
This commit is contained in:
@@ -515,7 +515,7 @@ class Journal extends Controller {
|
|||||||
public function getTopicList() {
|
public function getTopicList() {
|
||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
$journal_info = $this->journal_topic_obj->where('journal_topic_id', $data['journal_topic_id'])->find();
|
$journal_info = $this->journal_topic_obj->where('journal_topic_id', $data['journal_topic_id'])->find();
|
||||||
$list = $this->journal_topic_obj->where('parent_id', $data['journal_topic_id'])->where('state', 0)->select();
|
$list = $this->journal_topic_obj->where('parent_id', $data['journal_topic_id'])->where('state', 0)->order('sort asc')->select();
|
||||||
|
|
||||||
$re['oldJournal'] = $journal_info;
|
$re['oldJournal'] = $journal_info;
|
||||||
$re['journalList'] = $list;
|
$re['journalList'] = $list;
|
||||||
|
|||||||
@@ -13,8 +13,10 @@ return [
|
|||||||
'app\master\controller\Mysystem',
|
'app\master\controller\Mysystem',
|
||||||
'app\master\controller\Journal',
|
'app\master\controller\Journal',
|
||||||
'app\master\controller\Article',
|
'app\master\controller\Article',
|
||||||
|
'app\master\controller\Special',
|
||||||
'app\api\controller\Journal',
|
'app\api\controller\Journal',
|
||||||
'app\api\controller\Article',
|
'app\api\controller\Article',
|
||||||
|
'app\api\controller\Special',
|
||||||
'app\api\controller\Main'
|
'app\api\controller\Main'
|
||||||
],
|
],
|
||||||
'filter_method' => [
|
'filter_method' => [
|
||||||
|
|||||||
49
application/master/controller/Special.php
Normal file
49
application/master/controller/Special.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\master\controller;
|
||||||
|
|
||||||
|
use think\Controller;
|
||||||
|
use think\Db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 客座期刊
|
||||||
|
* @description 客座期刊
|
||||||
|
* @group 客座期刊
|
||||||
|
*/
|
||||||
|
class Special extends Controller {
|
||||||
|
|
||||||
|
//put your code here
|
||||||
|
protected $admin_obj = '';
|
||||||
|
protected $journal_obj = '';
|
||||||
|
protected $article_obj = '';
|
||||||
|
protected $article_author_obj = '';
|
||||||
|
protected $journal_topic_obj = '';
|
||||||
|
protected $journal_stage_obj = '';
|
||||||
|
protected $journal_notices_obj = '';
|
||||||
|
protected $journal_abs_obj = '';
|
||||||
|
protected $journal_special_obj = '';
|
||||||
|
protected $journal_special_editor_obj = '';
|
||||||
|
protected $journal_special_to_editor_obj = '';
|
||||||
|
protected $article_to_topic_obj = '';
|
||||||
|
protected $sys_scient_obj = '';
|
||||||
|
protected $sys_book_obj = '';
|
||||||
|
|
||||||
|
public function __construct(\think\Request $request = null) {
|
||||||
|
parent::__construct($request);
|
||||||
|
$this->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->journal_special_obj = Db::name('journal_special');
|
||||||
|
$this->journal_special_editor_obj = Db::name('journal_special_editor');
|
||||||
|
$this->journal_special_to_editor_obj = Db::name('journal_special_to_editor');
|
||||||
|
$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');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user