diff --git a/app/Controller/CallBackController.php b/app/Controller/CallBackController.php index 13c74df..b422764 100644 --- a/app/Controller/CallBackController.php +++ b/app/Controller/CallBackController.php @@ -1002,6 +1002,8 @@ class CallBackController extends AbstractController $data = array(); $data['order_product_status'] = 4; OrderProduct::edit($params,$data); + + // 新增药品用药记录 } Db::commit(); diff --git a/app/Services/PatientFamilyService.php b/app/Services/PatientFamilyService.php index c66a463..9d60259 100644 --- a/app/Services/PatientFamilyService.php +++ b/app/Services/PatientFamilyService.php @@ -910,7 +910,7 @@ class PatientFamilyService extends BaseService $params = array(); $params['patient_id'] = $user_info['client_user_id']; if ($family_id != 0){ - $params['family_id'] = $user_info['family_id']; + $params['patient_id'] = $user_info['client_user_id']; } $params['order_product_status'] = 4;// 订单状态(1:待支付 2:待发货 3:已发货 4:已签收 5:已取消)