From 363f332708b3ce5d246c1e6772b75e3131fd6ea0 Mon Sep 17 00:00:00 2001 From: yanzai Date: Mon, 16 Sep 2024 15:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E4=BD=93=E6=A3=80=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=8F=82=E6=95=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laravel/app/Http/Controllers/API/H5/OrderController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Laravel/app/Http/Controllers/API/H5/OrderController.php b/Laravel/app/Http/Controllers/API/H5/OrderController.php index a6b9533..bc7288e 100644 --- a/Laravel/app/Http/Controllers/API/H5/OrderController.php +++ b/Laravel/app/Http/Controllers/API/H5/OrderController.php @@ -107,6 +107,9 @@ class OrderController extends Controller if (!isset($openid)) return \Yz::echoError1('openid不能为空'); if (!isset($person_id)) return \Yz::echoError1('person_id不能为空'); if (!isset($type)) return \Yz::echoError1('type体检类型不能为空'); + if ($type !== '1' && $type !== '2') { + return \Yz::echoError1('type参数,体检类型错误'); + } if (!isset($plan_id)) return \Yz::echoError1('号源id不能为空'); if ($type == 2 and !isset($group_id)) return \Yz::echoError1('团检,group_id不能为空'); if ($type == 1 and isset($group_id)) return \Yz::echoError1('体检类型:个检 与group_id冲突'); @@ -317,7 +320,7 @@ class OrderController extends Controller public function Finish_test() //删除!!! { - $f=self::Finish('20240916144857398k3fL9K'); + $f=self::Finish('20240916154519911MbHwIE'); dd($f); }