From 7245a2ae4da675dc7dd956130f1b9e03e3dd4589 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 9 Nov 2023 16:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE=E9=98=B6?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/ProjectIndex.php | 3 +++ 1 file changed, 3 insertions(+) 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;