From e7829d638fc858cc4a52391907dcb07dd0e5bb76 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 15 Nov 2024 09:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=B1=E8=AF=8A=E4=BA=BA?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E4=BF=A1=E6=81=AF=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/modules/v1/controllers/PatientController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/member/modules/v1/controllers/PatientController.php b/member/modules/v1/controllers/PatientController.php index 8e8564f..4b50d79 100644 --- a/member/modules/v1/controllers/PatientController.php +++ b/member/modules/v1/controllers/PatientController.php @@ -25,7 +25,7 @@ class PatientController extends BaseAppController $all = UserPatient::find()->with(['healthInquiry'])->where([ 'user_id' => \Yii::$app->user->identity->id, 'is_delete' => 0 - ])->orderBy('id desc')->all(); + ])->orderBy('id desc')->asArray()->all(); return $all; }