1
This commit is contained in:
@@ -39,6 +39,7 @@ class Journal extends Controller {
|
||||
protected $footer_obj = '';
|
||||
protected $journal_for_author;
|
||||
protected $journal_for_author_yc_obj = '';
|
||||
protected $article_main_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -66,6 +67,7 @@ class Journal extends Controller {
|
||||
$this->footer_obj = Db::name('footer');
|
||||
$this->journal_for_author = Db::name('journal_for_author');
|
||||
$this->journal_for_author_yc_obj = Db::name('journal_for_author_yc');
|
||||
$this->article_main_obj = Db::name("article_main");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -633,6 +635,8 @@ class Journal extends Controller {
|
||||
}
|
||||
$list[$k]['title'] = $cache_title;
|
||||
$list[$k]['mains'] = [];//getArticleMains($v['article_id']);
|
||||
$cm = $this->article_main_obj->where('article_id',$v['article_id'])->where('state',0)->find();
|
||||
$list[$k]['has_mains'] = $cm?1:0;
|
||||
}
|
||||
|
||||
//获取作者
|
||||
|
||||
@@ -407,7 +407,7 @@ class Main extends Controller {
|
||||
// $push_url = 'http://www.journal.com/api/Main/getImgFile';
|
||||
|
||||
//定义需要查询同化的数组
|
||||
$list = ['articleCite','articlePDF','articleicon','articleSUB','boardIcon','articleSUB2','baseTopic','journalCfp','journalstage','journalfooter','journalicon','journalline','rotation','journaltopic','specialIcon','system','articleCDF'];
|
||||
$list = ['articleCite','articlePDF','articleicon','articleOriginal','articleSUB','boardIcon','articleSUB2','baseTopic','journalCfp','journalstage','journalfooter','journalicon','journalline','rotation','journaltopic','specialIcon','system','articleCDF'];
|
||||
|
||||
foreach ($list as $v){
|
||||
$dir = $root_url."public/".$v."/".date('Ymd');
|
||||
|
||||
Reference in New Issue
Block a user