* Refactor getDateList method.

This commit is contained in:
tianshujie
2023-08-28 14:49:35 +08:00
parent 9b69f2e67b
commit 055518d344
4 changed files with 31 additions and 30 deletions
+9 -8
View File
@@ -4381,18 +4381,19 @@ class executionModel extends model
}
/**
* Get no weekend date
* 获取日期列表数据。
* Get date list data.
*
* @param string $begin
* @param string $end
* @param string $type
* @param string|int $interval
* @param string $format
* @param string $executionDeadline
* @param string $begin
* @param string $end
* @param string $type
* @param int $interval
* @param string $format
* @param string $executionDeadline
* @access public
* @return array
*/
public function getDateList($begin, $end, $type, $interval = '', $format = 'm/d/Y', $executionDeadline = '')
public function getDateList(string $begin, string $end, string $type, int $interval = 0, string $format = 'm/d/Y', string $executionDeadline = ''): array
{
$this->app->loadClass('date', true);
$dateList = date::getDateList($begin, $end, $format, $type, $this->config->execution->weekend);