update cron->ajaxExec method to support params

This commit is contained in:
aaronchen2k
2020-01-15 18:57:43 +08:00
parent a221caebbf
commit 348cd174d1
+1 -1
View File
@@ -33,7 +33,7 @@ class cronModel extends model
public function getCrons($params = '')
{
return $this->dao->select('*')->from(TABLE_CRON)
->where('id=16')
->where('1=1')
->beginIF(strpos($params, 'nostop') !== false)->andWhere('status')->ne('stop')->fi()
->fetchAll('id');
}