diff --git a/app/api/controller/ProjectIndex.php b/app/api/controller/ProjectIndex.php index b27b9bc..e1139eb 100644 --- a/app/api/controller/ProjectIndex.php +++ b/app/api/controller/ProjectIndex.php @@ -113,6 +113,9 @@ class ProjectIndex extends ApiController $flow = []; $time_1 = $param['start_time']; $time_2 = $param['end_time']; + if (count($flowNameData) != count(array_unique($flowNameData))) { + $this->apiError('存在重复的项目阶段,请重新设置'); + } foreach ($flowNameData as $key => $value) { if (!$value) { continue;