* [bug#54942] Add the tutorial function of getStoryByID and adjust step.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user