* adjust for cron.

This commit is contained in:
wangyidong
2015-03-12 14:20:23 +08:00
parent 447476ad17
commit cc6fcc68c1
+1
View File
@@ -151,6 +151,7 @@ class cron extends control
/* Skip stop and running cron.*/
$cronInfo = $this->cron->getById($id);
if(empty($cronInfo) or $cronInfo->status == 'stop' or $cronInfo->status == 'running') continue;
if($cronInfo->lastTime > $cron['time']->format(DT_DATETIME1)) continue;
if($now > $cron['time'])
{