* [bug#54942] Add the tutorial function of getStoryByID and adjust step.

This commit is contained in:
xieqiyu
2024-09-09 10:20:18 +08:00
committed by 唐胡成
parent 3b6f1191b9
commit 0697d07599
4 changed files with 33 additions and 2 deletions
+14
View File
@@ -384,6 +384,20 @@ class tutorialModel extends model
return $requirement;
}
/**
* 根据需求ID获取需求详情。
* Get story by ID.
*
* @access public
* @return object
*/
public function getStoryByID(int $storyID): object
{
if($storyID == 1) return $this->getEpic();
if($storyID == 2) return $this->getRequirement();
return $this->getStory();
}
/**
* 获取新手模式故事点。
* Get tutorial stories.