小bug调整

This commit is contained in:
wangjinlei
2025-05-16 15:34:04 +08:00
parent 65e0f5ccc8
commit a5f6ec2dca
3 changed files with 16 additions and 9 deletions

View File

@@ -350,6 +350,7 @@ function strongArticleList($list){
$journal_obj = Db::name("journal");
$journals_ltai_obj = Db::name("article_ltai");
$article_cite_obj = Db::name("article_cite");
$article_to_topic_obj = Db::name("article_to_topic");
foreach ($list as $k => $v) {
$stage_info = $journal_stage_obj->where('journal_stage_id', $v['journal_stage_id'])->find();
$journal_info = $journal_obj->where('journal_id', $v['journal_id'])->find();
@@ -377,6 +378,10 @@ function strongArticleList($list){
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
}
$list[$k]['title'] = $cache_title;
$cache_topic = $article_to_topic_obj->field('j_journal_topic.*')->join('j_journal_topic', 'j_journal_topic.journal_topic_id = j_article_to_topic.topic_id', 'left')->where('j_article_to_topic.article_id', $v['article_id'])->where('j_article_to_topic.state', 0)->select();
$list[$k]['topic'] = $cache_topic;
}
//连续出版判断,决定是否显示出版时间
foreach ($list as $k => $v){