From c5c80d85ab9b32db6975cb4d4643543331bbaa16 Mon Sep 17 00:00:00 2001 From: liqi Date: Thu, 6 Mar 2025 17:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eapi=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=A4=84=E6=96=B9=E7=94=9F=E6=88=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/controllers/base/DataController.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/admin/controllers/base/DataController.php b/admin/controllers/base/DataController.php index aa0f48d..2b7a98e 100644 --- a/admin/controllers/base/DataController.php +++ b/admin/controllers/base/DataController.php @@ -225,13 +225,15 @@ class DataController extends BaseAdminController } public function actionNotifyOrderGeneration() { - $param = \Yii::$app->request->post(); - $this->requestValidate($param, [ - ['prescription', 'required'], - ['product_order', 'required'], - ]); - $prescription = $param['prescription']; - return $prescription; + $prescription = \Yii::$app->request->post('prescription'); +// $this->requestValidate($param, [ +// ['prescription', 'required'], +// ['product_order', 'required'], +// ]); + return [ + gettype($prescription), + $prescription + ]; // $productOrder = $param['product_order']; //触发处方自动失效事件 // $prescriptionEvent = new PrescriptionEvent();