From dc7ca1a08ae4d1f6eb1d8b04604aa07a7e9aed32 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 1 Mar 2024 09:58:07 +0800 Subject: [PATCH] * Fix an issue where the condition was replaced with id when it was story. --- module/transfer/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/transfer/model.php b/module/transfer/model.php index ea10535edb..f3584d9fd3 100644 --- a/module/transfer/model.php +++ b/module/transfer/model.php @@ -613,7 +613,7 @@ class transferModel extends model /* Fetch datas by session condition. */ if($onlyCondition && $queryCondition) { - if($module == 'story') $queryCondition = str_replace('story', 'id', $queryCondition); + if($module == 'story') $queryCondition = str_replace('`story`', '`id`', $queryCondition); $table = zget($this->config->objectTables, $module); //获取对应的表 $moduleDatas = $this->dao->select('*')->from($table)->alias('t1')