From b3cfc5e9d0a0e8dee933d0edba92f399a5ef83d6 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Sat, 15 Jul 2023 19:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E7=9C=8B=E6=9C=AA?= =?UTF-8?q?=E6=8E=A5=E8=AF=8A=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/TestController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Controller/TestController.php b/app/Controller/TestController.php index b5e0c96..0df0a89 100644 --- a/app/Controller/TestController.php +++ b/app/Controller/TestController.php @@ -82,7 +82,7 @@ class TestController extends AbstractController // 获取未接诊的医生 public function uninquiry(){ - $data = array(); + $datas = array(); $params = array(); $params['inquiry_status'] = 3;// 待接诊 @@ -104,15 +104,17 @@ class TestController extends AbstractController }elseif ($row['inquiry_type'] == 4){ $inquiry_type = "问诊购药"; } - + $data = array(); $data['user_name'] = $user_doctor['user_name']; $data['inquiry_type'] = $inquiry_type; $data['patient_name'] = $row['patient_name']; $data['pay_time'] = $row['pay_time']; + + $datas[] = $data; } } - return $this->response->json(success($data)); + return $this->response->json(success($datas)); }