* Adjust code.

This commit is contained in:
tianshujie98
2021-07-01 10:21:29 +08:00
parent 3154474094
commit d3571635f8
+1
View File
@@ -32,6 +32,7 @@ class storyModel extends model
$story->title = isset($spec->title) ? $spec->title : '';
$story->spec = isset($spec->spec) ? $spec->spec : '';
$story->verify = isset($spec->verify) ? $spec->verify : '';
if(!empty($story->fromStory)) $story->sourceName = $this->dao->select('title')->from(TABLE_STORY)->where('id')->eq($story->fromStory)->fetch('title');
/* Check parent story. */
if($story->parent > 0) $story->parentName = $this->dao->findById($story->parent)->from(TABLE_STORY)->fetch('title');