From 045cd929713fe8482544eef95e82394530f7de7f Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 20 May 2024 14:33:40 +0800 Subject: [PATCH] * Fix story vision bug. --- module/story/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index c6b7c841d1..8731ca2261 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -141,7 +141,7 @@ class storyModel extends model ->where('t1.version=t2.version') ->andWhere('t1.id')->in($storyIdList) ->beginIF($mode != 'all')->andWhere('t1.deleted')->eq('0')->fi() - ->beginIF($this->config->vision == 'or')->andWhere('t1.vision')->eq('or')->fi() + ->beginIF($this->config->vision == 'or')->andWhere('t1.vision')->in('or')->fi() ->fetchAll('id'); } @@ -155,7 +155,7 @@ class storyModel extends model */ public function getPairsByList(array|string $storyIdList): array { - $storyPairs = $this->dao->select('id, title')->from(TABLE_STORY)->where('id')->in($storyIdList)->beginIF($this->config->vision == 'or')->andWhere('t1.vision')->eq('or')->fi()->fetchPairs(); + $storyPairs = $this->dao->select('id, title')->from(TABLE_STORY)->where('id')->in($storyIdList)->beginIF($this->config->vision == 'or')->andWhere('t1.vision')->in('or')->fi()->fetchPairs(); return array(0 => '') + $storyPairs; }