fix: 工作流列表接口用作筛选时不用传多余参数

This commit is contained in:
韦荣超
2022-01-25 16:28:15 +08:00
parent 8f0b5dc049
commit d91fa33330
2 changed files with 9 additions and 6 deletions

View File

@@ -1615,9 +1615,13 @@ class ProjectController extends AbstractController
User::auth();
//
$project_id = intval(Request::input('project_id'));
$is_filter = intval(Request::input('is_filter',0));
$is_filter = intval(Request::input('is_filter', 0));
//
$project = Project::userProject($project_id, true, true, $is_filter);
if ($is_filter > 0) {
$project = Project::userProject($project_id, null);
} else {
$project = Project::userProject($project_id, true, true);
}
//
$list = ProjectFlow::with(['ProjectFlowItem'])->whereProjectId($project->id)->get();
return Base::retSuccess('success', $list);