From 88aa78697f3cfbefe90660ebe1482c83719b9115 Mon Sep 17 00:00:00 2001 From: lq Date: Thu, 12 Dec 2024 16:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=81=97=E7=95=99=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=97=AE=E9=A2=98=EF=BC=8C=E6=8C=82=E5=8F=B7?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E3=80=81=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/models/forms/DoctorServiceForm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/models/forms/DoctorServiceForm.php b/service/models/forms/DoctorServiceForm.php index 117de33..b43bcac 100644 --- a/service/models/forms/DoctorServiceForm.php +++ b/service/models/forms/DoctorServiceForm.php @@ -53,6 +53,9 @@ class DoctorServiceForm extends BaseModel $model = new DoctorService(); $model->su_id = \Yii::$app->user->identity->id; } + if (!empty($this->register_status?? null)) { + $model->register_status = $this->register_status; + } $model->attributes = $this->attributes; $model->saveOrFail();