新增api通知处方生成功能

This commit is contained in:
2025-03-06 17:06:08 +08:00
parent 9cae42a67e
commit 9869582606

View File

@@ -708,11 +708,11 @@ class PrescriptionController extends BaseAppController
]);
$prescription = $param['prescription'];
$productOrder = $param['product_order'];
//触发处方自动失效事件
$prescriptionEvent = new PrescriptionEvent();
$prescriptionEvent->prescription = $prescription;
$prescriptionEvent->sender = $this;
\Yii::$app->trigger(Prescription::AUTO_EXPIRE, $prescriptionEvent);
// //触发处方自动失效事件
// $prescriptionEvent = new PrescriptionEvent();
// $prescriptionEvent->prescription = $prescription;
// $prescriptionEvent->sender = $this;
// \Yii::$app->trigger(Prescription::AUTO_EXPIRE, $prescriptionEvent);
//触发订单创建事件