This commit is contained in:
wangjinlei
2024-12-31 10:28:39 +08:00
parent 2af11754af
commit 43dce5eecb
2 changed files with 9 additions and 5 deletions

View File

@@ -477,7 +477,7 @@ class Journal extends Controller {
$data = $this->request->post();
$list = [];
if ($data['journal_topic_id'] == 0) {
$journals = $this->journal_obj->where('state', 0)->order("sort desc")->select();
$journals = $this->journal_obj->where('state', 0)->where("journal_id","<>",13)->order("sort desc")->select();
foreach ($journals as $k => $v) {
$topic_info = $this->journal_topic_obj->where('journal_id', $v['journal_id'])->where('title', 'Topics')->where('state', 0)->find();
$cache = $this->journal_topic_obj->where('parent_id', $topic_info['journal_topic_id'])->where('state', 0)->limit(5)->select();
@@ -493,6 +493,7 @@ class Journal extends Controller {
->where('j_journal_topic.parent_id', 'in', $tpids)
->where('j_journal_topic.title', $topic_info['title'])
->where('j_journal_topic.state', 0)
->where("j_journal.journal_id","<>",13)
// ->where("j_journal.journal_id","<>",25)
->order("j_journal.sort desc")
->select();