20201112
This commit is contained in:
@@ -29,6 +29,7 @@ class Main extends Controller {
|
||||
protected $sys_book_obj = '';
|
||||
protected $sys_not_obj = '';
|
||||
protected $article_ltai_obj = '';
|
||||
protected $board_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -45,6 +46,7 @@ class Main extends Controller {
|
||||
$this->sys_book_obj = Db::name('system_books');
|
||||
$this->sys_not_obj = Db::name('system_notices');
|
||||
$this->article_ltai_obj = Db::name('article_ltai');
|
||||
$this->board_obj = Db::name('board');
|
||||
}
|
||||
|
||||
public function ttest(){
|
||||
@@ -355,7 +357,7 @@ class Main extends Controller {
|
||||
// $push_url = 'http://www.journal.com/api/Main/getImgFile';
|
||||
|
||||
//定义需要查询同化的数组
|
||||
$list = ['articleCite','articlePDF','articleicon','articleSUB','articleSUB2','journalCfp','journalfooter','journalicon','journalline','journaltopic','system'];
|
||||
$list = ['articleCite','articlePDF','articleicon','articleSUB','articleSUB2','journalCfp','journalfooter','journalicon','journalline','rotation','journaltopic','system','articleCDF'];
|
||||
|
||||
foreach ($list as $v){
|
||||
$dir = $root_url."public/".$v."/".date('Ymd');
|
||||
@@ -570,7 +572,25 @@ class Main extends Controller {
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取编委
|
||||
*/
|
||||
public function getBoards(){
|
||||
$data = $this->request->post();
|
||||
$journal_info = $this->journal_obj->where('issn',$data['issn'])->find();
|
||||
$boards = $this->board_obj->where('journal_id',$journal_info['journal_id'])->where('state',0)->select();
|
||||
return json($boards);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 绑定投稿系统用户
|
||||
*/
|
||||
public function bindBoard(){
|
||||
$data = $this->request->post();
|
||||
$up['tuser_id'] = $data['user_id'];
|
||||
$this->board_obj->where('board_id',$data['board_id'])->update($up);
|
||||
return json('success');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user