* code for task #6889.

This commit is contained in:
wangyidong
2020-02-21 10:06:30 +08:00
parent cb6d24b7ff
commit c99bc8209e
22 changed files with 206 additions and 366 deletions
+10 -5
View File
@@ -23,16 +23,21 @@ class ci extends control
}
/**
* CI index page.
*
* Build today job.
*
* @access public
* @return void
*/
public function index()
public function buildTodayJob()
{
$this->view->position[] = $this->lang->ci->common;
$scheduleJobs = $this->loadModel('integration')->getListByTriggerType('schedule');
$this->display();
$week = date('w');
foreach($scheduleJobs as $job)
{
if(strpos($job->scheduleDay, $week) !== false) $this->integration->exec($job->id);
}
die('success');
}
/**