From f571b9d6ed73a4e0863d576f9752ceee3975dcfb Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 12 Apr 2023 15:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=84=E6=96=B9=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/getPrescriptionOrderStatusCommand.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Command/getPrescriptionOrderStatusCommand.php b/app/Command/getPrescriptionOrderStatusCommand.php index 85c68d2..8f93f85 100644 --- a/app/Command/getPrescriptionOrderStatusCommand.php +++ b/app/Command/getPrescriptionOrderStatusCommand.php @@ -48,11 +48,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand return; } - foreach ($order_product_ids as $item) { - if ($item['order_product_id'] != "504656990619947008"){ - continue; - } Db::beginTransaction(); // 是否执行了退款-预定义变量 @@ -112,6 +108,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand $OrderProductService = new OrderProductService(); $OrderProductService->OrderProductRefund($item['order_product_id'],"订单退款"); + // 标记为执行了退款 $is_refund = 1; } @@ -151,7 +148,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand $this->line("获取处方平台订单数据失败:" . $e->getMessage()); } - // 检测是否需要发送通知 + // 检测是否执行了退款 if ($is_refund == 1){ try { // 获取患者用户id