+ [task#132868,doing,0.4h] add system data for tutorial.

This commit is contained in:
caoyanyi
2024-11-27 10:26:27 +08:00
committed by 田淑杰
parent cb49b951a7
commit ee8df79049
2 changed files with 44 additions and 1 deletions
+1 -1
View File
@@ -368,7 +368,7 @@ $productManage->basic->tasks['releaseManage']['steps'][] = array(
$productManage->basic->tasks['releaseManage']['steps'][] = array(
'type' => 'click',
'target' => '#actionBar a',
'target' => '#actionBar a.primary',
'page' => 'release-browse',
'url' => array('release', 'browse', 'productID=1'),
'title' => $lang->tutorial->productManage->releaseManage->step2->name,
+43
View File
@@ -884,6 +884,7 @@ class tutorialModel extends model
{
$build = new stdClass();
$build->id = 1;
$build->system = 1;
$build->project = 2;
$build->product = 1;
$build->branch = '0';
@@ -1853,6 +1854,47 @@ class tutorialModel extends model
return array(1 => $this->getPlan()->title);
}
/**
* 获取新手模式系统。
* Get system.
*
* @access public
* @return object
*/
public function getSystem(): object
{
$system = new stdclass();
$system->id = 1;
$system->name = 'Test App';
$system->product = 1;
$system->integrated = '0';
return $system;
}
/**
* 获取新手模式应用键值对。
* Get system pairs.
*
* @access public
* @return array
*/
public function getSystemPairs(): array
{
return array(1 => $this->getSystem()->name);
}
/**
* 获取新手模式产品应用列表。
* Get product app list.
*
* @access public
* @return array
*/
public function getSystemList(): array
{
return array(1 => $this->getSystem());
}
/**
* 获取新手模式发布。
* Get releases.
@@ -1864,6 +1906,7 @@ class tutorialModel extends model
{
$release = new stdClass();
$release->id = 1;
$release->system = 1;
$release->project = 0;
$release->product = 1;
$release->branch = '0';