This commit is contained in:
wangjinlei
2023-06-02 10:12:22 +08:00
parent f1279814b2
commit 09a2f3231f
4 changed files with 628 additions and 446 deletions

View File

@@ -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']);

View File

@@ -164,7 +164,7 @@ class Special extends Controller {
$f = [];
//获取作者
foreach ($list as $k => $v){
if(strtotime($v['deadline'])< time()){
if(strtotime($v['deadline'])<= time()){
continue;
}
$frag = '';
@@ -180,6 +180,7 @@ class Special extends Controller {
$v['editor'] = $frag;
$f[] = $v;
}
$re['is_show'] = count($list)>0?'true':'false';
$re['specials'] = $f;
return jsonSuccess($re);
}
@@ -265,6 +266,12 @@ class Special extends Controller {
->select();
//获取作者
foreach ($list as $k => $v){
if(strtotime($v['deadline'])<= time()){
$cou = $this->article_obj->where('journal_special_id',$v['journal_special_id'])->where('state',0)->count();
if($cou<3){
continue;
}
}
$frag = '';
$caches = $this->journal_special_to_editor_obj
->field('j_journal_special_editor.*')