* Add checkCodeUsed and modify project api.

This commit is contained in:
songchenxuan
2023-07-05 08:52:33 +08:00
parent 31604a7d37
commit 5880eab419
2 changed files with 21 additions and 4 deletions
+13
View File
@@ -481,6 +481,19 @@ class baseEntry
}
}
/**
* 检查是否在后台启用了代号.
* Check whether config->setCode are used in product,project,execution.
*
* @access public
* @return bool
*/
public function checkCodeUsed()
{
return isset($this->config->setCode) ? $this->config->setCode : 0;
}
/**
* 格式化数据的字段类型.
* Format fields of response data.