0) { if (!in_array($memberId, $context['member_userids'], true)) { return Base::retError('参数错误'); } } elseif ($level !== null) { if ($level !== -1 && !in_array($level, DashboardTeam::priorityLevels(), true)) { return Base::retError('参数错误'); } } elseif (!in_array($type, ['uncompleted', 'overdue', 'soon', 'hi', 'noowner'], true)) { return Base::retError('参数错误'); } return Base::retSuccess('success', DashboardTeam::tasks($context, [ 'type' => $type, 'member_id' => $memberId, 'level' => $level, ])); } }