* Fix dynamic logic.

This commit is contained in:
zhujinyong
2021-03-24 14:51:28 +08:00
parent 534f2a947b
commit 4c237e2601
16 changed files with 83 additions and 55 deletions
+3 -2
View File
@@ -1018,12 +1018,13 @@ class projectModel extends model
* Start project.
*
* @param int $projectID
* @param string $type
* @access public
* @return array
*/
public function start($projectID)
public function start($projectID, $type = 'project')
{
$oldProject = $this->getById($projectID);
$oldProject = $this->getById($projectID, $type);
$now = helper::now();
$project = fixer::input('post')