新增api通知处方生成功能
This commit is contained in:
@@ -230,10 +230,10 @@ class DataController extends BaseAdminController
|
||||
// ['prescription', 'required'],
|
||||
// ['product_order', 'required'],
|
||||
// ]);
|
||||
return [
|
||||
gettype($prescription),
|
||||
$prescription
|
||||
];
|
||||
// return [
|
||||
// gettype($prescription),
|
||||
// $prescription
|
||||
// ];
|
||||
// $productOrder = $param['product_order'];
|
||||
//触发处方自动失效事件
|
||||
// $prescriptionEvent = new PrescriptionEvent();
|
||||
@@ -250,13 +250,13 @@ class DataController extends BaseAdminController
|
||||
|
||||
//处方开具待支付订阅消息通知
|
||||
\Yii::$app->queue->push(new PrescriptionCreated([
|
||||
'orderId' => $prescription['id'],
|
||||
'orderId' => $prescription,
|
||||
]));
|
||||
|
||||
|
||||
//处方生成短信通知药师审方
|
||||
\Yii::$app->queue->push(new WaitApprovalMessageJob([
|
||||
'orderId' => $prescription['id'],
|
||||
'orderId' => $prescription,
|
||||
]));
|
||||
return ['ok'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user