新增api通知处方生成功能
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user