From ac91e04a4cdeb2c5979a54b8fd3e941b6d90e4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=A9=E4=BB=9488?= <> Date: Sat, 23 May 2026 15:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E4=BD=93=E6=A3=80=E8=BF=94=E5=9B=9Enu?= =?UTF-8?q?ll=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laravel/app/Lib/Yz.php | 8 ++++++++ Laravel/app/Services/Admin/YeWu/AppointmentService.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Laravel/app/Lib/Yz.php b/Laravel/app/Lib/Yz.php index d30f426..b025998 100644 --- a/Laravel/app/Lib/Yz.php +++ b/Laravel/app/Lib/Yz.php @@ -23,6 +23,14 @@ public static function echoError1($msg){ return response()->json($result)->setEncodingOptions(JSON_UNESCAPED_UNICODE); } + public static function ReturnNew($status,$msg,$data=null){ + $result=array(); + $result['status']=$status; + $result['msg']=$msg; + $result['data']=$data; + return $result; + } + public static function Return($status,$msg,$data=[]){ $result=array(); $result['status']=$status; diff --git a/Laravel/app/Services/Admin/YeWu/AppointmentService.php b/Laravel/app/Services/Admin/YeWu/AppointmentService.php index 3341754..ea4a0e4 100644 --- a/Laravel/app/Services/Admin/YeWu/AppointmentService.php +++ b/Laravel/app/Services/Admin/YeWu/AppointmentService.php @@ -118,7 +118,7 @@ public function CheckAppointment($name,$id_card_num,$type,$currentOrgName='',$do if ($date > $now) { $conflictService = app()->make(\App\Services\ConflictService::class); $conflictService->logConflict($name, $encode_id_card_num, $currentOrgName,$doctor_name, $cha_jkz->org_name, $cha_jkz->created_at, $type, 'CheckAppointment'); - return \Yz::Return(false,'该人员已于'.$cha_jkz->created_at.'在'.$cha_jkz->org_name.'登记'); + return \Yz::ReturnNew(false,'该人员已于'.$cha_jkz->created_at.'在'.$cha_jkz->org_name.'登记'); } } //查询是否有预约记录