1
This commit is contained in:
@@ -25,6 +25,7 @@ class Article extends Controller {
|
||||
protected $journal_notices_obj = '';
|
||||
protected $journal_abs_obj = '';
|
||||
protected $article_to_topic_obj = '';
|
||||
protected $article_main_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -40,6 +41,7 @@ class Article extends Controller {
|
||||
$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->article_main_obj = Db::name('article_main');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,7 +89,13 @@ class Article extends Controller {
|
||||
$cite = $article_info['abbr'] . '. ' . $article_info['title'] . '. <i>' . choiseJabbr($article_info['article_id'], $journal_info['jabbr']) . '</i>. ' . $stage_info['stage_year'] . ';' . $stage_info['stage_vol'] . $no . $article_info['npp'] . '. doi:' . $article_info['doi'];
|
||||
}
|
||||
|
||||
// echo ($article_info['article_id']<1799&&$article_info['npp']=='Cancer Adv'?'TMR Cancer':$article_info['npp']);
|
||||
//获取html
|
||||
if($article_info['file_html']==''){
|
||||
$caches = $this->article_main_obj->where('article_id',$article_info['article_id'])->where('state',0)->select();
|
||||
if($caches){
|
||||
$article_info['file_html'] = $caches;
|
||||
}
|
||||
}
|
||||
|
||||
if (stripos($article_info['npp'], '-')) {
|
||||
$cc = explode('-', $article_info['npp']);
|
||||
|
||||
Reference in New Issue
Block a user