fix: 工作流列表接口用作筛选时不用传多余参数
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user