perf: 任务等级支持设置0天表示默认不限时

This commit is contained in:
kuaifan
2021-12-28 14:37:02 +08:00
parent 739d1f2455
commit d7f1246c32
3 changed files with 18 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ class SystemController extends AbstractController
return Base::retError('参数错误');
}
foreach ($list AS $item) {
if (empty($item['name']) || empty($item['color']) || empty($item['days']) || empty($item['priority'])) {
if (empty($item['name']) || empty($item['color']) || empty($item['priority'])) {
continue;
}
$array[] = [