测试医生注册

This commit is contained in:
2024-12-12 14:23:53 +08:00
parent 12767dfe0e
commit 7760f0e24d

View File

@@ -95,9 +95,21 @@ class CompleteController extends BaseServiceController
public function actionDoctorStepOne()
{
//医院院区科室职称有删除的怎么办-先不管
$form = new DoctorCompleteOne();
$form->attributes = \Yii::$app->request->post();
return $form->save();
try {
$form = new DoctorCompleteOne();
$form->attributes = \Yii::$app->request->post();
return $form->save();
} catch (\Exception $e) {
ds([
'code' => 500,
'msg' => $e->getMessage(),
'data' => [
$e->getLine(),
$e->getFile(),
]
]);
throw new Exception($e->getMessage());
}
}
/**