From 28e0a9041ce4b7ef493bd82ee595e4f548fb4873 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 12 Apr 2023 17:07:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=80=80=E6=AC=BE=E6=8E=A8?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/ReportPreProductOrderCommand.php | 25 -------------------- 1 file changed, 25 deletions(-) diff --git a/app/Command/ReportPreProductOrderCommand.php b/app/Command/ReportPreProductOrderCommand.php index 7e4fb2e..efa0654 100644 --- a/app/Command/ReportPreProductOrderCommand.php +++ b/app/Command/ReportPreProductOrderCommand.php @@ -82,14 +82,6 @@ class ReportPreProductOrderCommand extends HyperfCommand $OrderProductService = new OrderProductService(); $OrderProductService->OrderProductRefund($item['order_product_id'],"药品订单退款"); - // 获取患者用户id - $user_id = $this->getPatientUserId($item['patient_id']); - if (!empty($user_id)){ - // 发送站内、订阅、短信消息-药品订单退款成功 - $MessagePush = new MessagePush($user_id); - $MessagePush->refundProductSuccess($item['order_product_id']); - } - // 清空缓存 $redis->del($redis_key); @@ -208,21 +200,4 @@ class ReportPreProductOrderCommand extends HyperfCommand OrderProduct::edit($params,$data); } - /** - * 获取患者用户id - * @param string $patient_id - * @return string - */ - protected function getPatientUserId(string $patient_id): string - { - // 获取患者数据 - $params = array(); - $params['patient_id'] = $patient_id; - $user_patient = UserPatient::getOne($params); - if (empty($user_patient)){ - return ""; - } - - return $user_patient['user_id']; - } }