* Fix an issue where the condition was replaced with id when it was story.

This commit is contained in:
tianshujie
2024-03-01 09:58:07 +08:00
parent c16d2a0656
commit dc7ca1a08a
+1 -1
View File
@@ -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')