diff --git a/module/execution/model.php b/module/execution/model.php index 1f5770e64a..30e68ae946 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4206,25 +4206,27 @@ class executionModel extends model } /** + * 获取看板状态列表。 * Get status list of kanban. * * @param object $kanbanSetting This param is used in the biz version, don't remove it. * @access public * @return string */ - public function getKanbanStatusList($kanbanSetting) + public function getKanbanStatusList(object $kanbanSetting): string { return $this->lang->task->statusList; } /** + * 获取看板颜色列表。 * Get color list of kanban. * * @param object $kanbanSetting * @access public * @return array */ - public function getKanbanColorList($kanbanSetting) + public function getKanbanColorList(object $kanbanSetting): array { return $kanbanSetting->colorList; } diff --git a/module/execution/test/model/getkanbancolorlist.php b/module/execution/test/model/getkanbancolorlist.php index d53127befc..4a4a6b9cb3 100755 --- a/module/execution/test/model/getkanbancolorlist.php +++ b/module/execution/test/model/getkanbancolorlist.php @@ -18,5 +18,5 @@ pid=1 $count = array('0', '1'); $execution = new executionTest(); -r($execution->getKanbanColorListTest($count[0])) && p('wait') && e('#7EC5FF'); // 看板状态颜色查询 -r($execution->getKanbanColorListTest($count[1])) && p() && e('6'); // 看板状态颜色数量统计 \ No newline at end of file +r($execution->getKanbanColorListTest($count[0])) && p('wait') && e('~f:7EC5FF$~'); // 看板状态颜色查询 +r($execution->getKanbanColorListTest($count[1])) && p() && e('6'); // 看板状态颜色数量统计